Skip to content

Commit

Permalink
Two more benchmarks for partial sorting with ESQL (elastic#703)
Browse files Browse the repository at this point in the history
* Two more benchmarks for partial sorting with ESQL

These cannot be replicated in _search since that only supports what can be pushed down to lucene, and this feature explicitly only pushes down part of the sort, and then does the other part in the compute engine.

* Remove incorrectly added temporary benchmarks.
  • Loading branch information
craigtaverner authored Nov 5, 2024
1 parent b458720 commit 8705a2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions geopoint/challenges/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@
"iterations": 50,
"tags": ["distance", "esql", "sort"]
},
{
"operation": "distanceSort-esql-partial",
"warmup-iterations": 50,
"iterations": 50,
"tags": ["distance", "esql", "sort"]
},
{
"operation": "distanceFilterSort",
"warmup-iterations": 200,
Expand All @@ -349,6 +355,12 @@
"iterations": 100,
"tags": ["distance", "esql", "sort"]
},
{
"operation": "distanceFilterSort-esql-partial",
"warmup-iterations": 200,
"iterations": 100,
"tags": ["distance", "esql", "sort"]
},
{
"operation": "distanceRange",
"warmup-iterations": 40,
Expand Down
10 changes: 10 additions & 0 deletions geopoint/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,11 @@
"operation-type": "esql",
"query": "FROM osmgeopoints | EVAL distance = ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) | SORT distance ASC | LIMIT 10"
},
{
"name": "distanceSort-esql-partial",
"operation-type": "esql",
"query": "FROM osmgeopoints | EVAL distance = ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")), loc = location::string | SORT distance ASC, loc ASC | LIMIT 10"
},
{
"name": "distanceFilterSort",
"operation-type": "search",
Expand Down Expand Up @@ -620,6 +625,11 @@
"operation-type": "esql",
"query": "FROM osmgeopoints | EVAL distance = ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")) | WHERE distance <= 400000 | SORT distance ASC | LIMIT 10"
},
{
"name": "distanceFilterSort-esql-partial",
"operation-type": "esql",
"query": "FROM osmgeopoints | EVAL distance = ST_Distance(location, TO_GEOPOINT(\"POINT(7.0 55.0)\")), loc = location::string | WHERE distance <= 400000 | SORT distance ASC, loc ASC | LIMIT 10"
},
{
"name": "distanceRange",
"operation-type": "search",
Expand Down

0 comments on commit 8705a2b

Please sign in to comment.