# README
runtime/queries/
This package implements pre-defined analytical queries. Each query should adhere to the runtime.Query
interface to enable efficient caching and cache invalidation of query results.
Adding a new query
Each query should be defined in a separate file and have its own test file containing at least one unit test and exactly one benchmark. The benchmark should be implemented against the ad_bids
test project. See column_topk.go
and column_topk_test.go
for an example.
Running benchmarks
From the repo root, you can benchmark all queries by running:
go test -bench=. -benchmem ./runtime/queries/...
# Functions
No description provided by the author
MetricsViewFromQuery extracts the metrics view name from a JSON query based on the query name.
Returns a new interval with nicer looking bounds covering the given interval and the step relative to the number of ticks (`count` parameter).
ProtoFromJSON builds a proto query from a query name, JSON args, and optional execution time.
ProtoToQuery builds a runtime query from a proto query and security attributes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author