You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Query randomization (#455) lets OSB automatically randomize the bounds of a range query in a controllable way, which is useful for testing cache performance. But it's currently hardcoded to only work on range queries with parameters gte/gt, lte/lt, and optionally format. This isn't ideal. For example, range queries like this don't usually enter the query cache, so testing the query cache requires more flexibility.
Describe the solution you'd like
For each operation, the user should be able to define the query name they are looking to randomize, and also specify the names of the parameters that should be randomized. For example, on a GeoPoint field named "pickup_location", they could randomize the following query:
by specifying the query name geo_bounding_box and the parameter names top_left and bottom_right. This can be done by registering these values on an operation level in workload.py, like how standard value sources for the randomness are registered.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
Query randomization (#455) lets OSB automatically randomize the bounds of a range query in a controllable way, which is useful for testing cache performance. But it's currently hardcoded to only work on
range
queries with parametersgte
/gt
,lte
/lt
, and optionallyformat
. This isn't ideal. For example, range queries like this don't usually enter the query cache, so testing the query cache requires more flexibility.Describe the solution you'd like
For each operation, the user should be able to define the query name they are looking to randomize, and also specify the names of the parameters that should be randomized. For example, on a GeoPoint field named "pickup_location", they could randomize the following query:
by specifying the query name
geo_bounding_box
and the parameter namestop_left
andbottom_right
. This can be done by registering these values on an operation level in workload.py, like how standard value sources for the randomness are registered.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: