-
Notifications
You must be signed in to change notification settings - Fork 218
Added two more distancefilter benchmarks and updated iterations after new optimizations #693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -453,11 +453,57 @@ | |
| } | ||
| } | ||
| }, | ||
| { | ||
| "name": "distanceFilterCount200x300-alt", | ||
| "operation-type": "search", | ||
| "body": { | ||
| "query": { | ||
| "bool": { | ||
| "must": [ | ||
| { | ||
| "geo_shape": { | ||
| "location": { | ||
| "shape": { "type": "circle", "radius": "300km", "coordinates": [7, 55] }, | ||
| "relation": "intersects" | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "bool": { | ||
| "must_not": [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of a must not, could we use a disjoint spatial relationship?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The disjoint version was the original version. This is an alternative query that deliberately does things differently, to see if that makes a difference to the performance. It does not seem to make any difference. |
||
| { | ||
| "geo_shape": { | ||
| "location": { | ||
| "shape": { "type": "circle", "radius": "200km", "coordinates": [7, 55] }, | ||
| "relation": "intersects" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "aggs": { | ||
| "count": { | ||
| "value_count": { | ||
| "field": "location" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "name": "distanceFilterCount200x300-esql", | ||
| "operation-type": "esql", | ||
| "query": "FROM osmgeopoints | WHERE ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) >= 200000 AND ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) <= 300000 | STATS count=COUNT(*)" | ||
| }, | ||
| { | ||
| "name": "distanceFilterCount200x300-esql-evals", | ||
| "operation-type": "esql", | ||
| "query": "FROM osmgeopoints | EVAL point=TO_GEOPOINT(\"POINT(7.0 55.0)\") | EVAL distance=ST_Distance(location, point) | WHERE distance >= 200000 AND distance <= 300000 | STATS count=COUNT(*)" | ||
| }, | ||
| { | ||
| "name": "distanceFilterCount300", | ||
| "operation-type": "search", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a filter instead of must?