-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ES|QL JOIN: non existing keys and duplicate keys (#730)
- Loading branch information
1 parent
17cc202
commit 27cf095
Showing
6 changed files
with
249 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"name": "esql-large", | ||
"description": "Performance benchmarks for internal R&D on query languages. This is work in progress", | ||
"default": false, | ||
"schedule": [ | ||
{ | ||
"operation": "delete-index", | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"operation": { | ||
"operation-type": "create-index", | ||
"settings": {%- if index_settings is defined %} {{index_settings | tojson}} {%- else %} { | ||
{# non-serverless-index-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%} | ||
{% if p_include_non_serverless_index_settings %} | ||
"index.translog.flush_threshold_size": "4g", | ||
{% endif %} | ||
{%- endif -%}{# non-serverless-index-settings-marker-end #} | ||
"index.codec": "best_compression", | ||
"index.refresh_interval": "30s" | ||
}{%- endif %} | ||
}, | ||
"tags": ["setup"] | ||
}, | ||
|
||
{ | ||
"name": "check-cluster-health", | ||
"operation": { | ||
"operation-type": "cluster-health", | ||
"index": "join_base_idx", | ||
"request-params": { | ||
"wait_for_status": "{{cluster_health | default('green')}}", | ||
"wait_for_no_relocating_shards": "true" | ||
}, | ||
"retry-until-success": true | ||
}, | ||
"tags": ["setup"] | ||
}, | ||
|
||
{ | ||
"operation": "index-base", | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"operation": "index-small-lookup-indices", | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"operation": "index-lookup-1m", | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"operation": "index-lookup-5m", | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"operation": "index-lookup-100m", | ||
"clients": {{bulk_indexing_clients | default(8)}}, | ||
"tags": ["setup"] | ||
}, | ||
{ | ||
"name": "refresh-after-index", | ||
"operation": "refresh", | ||
"tags": ["setup"] | ||
}, | ||
|
||
|
||
{% for i in range(idx_suffix|length) %} | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_limit1", | ||
"tags": ["lookup", "join", "limit1"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_limit1000", | ||
"tags": ["lookup", "join", "limit1000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_limit10000", | ||
"tags": ["lookup", "join", "limit10000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_keep_limit10000", | ||
"tags": ["lookup", "join", "limit10000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_sort_limit10000", | ||
"tags": ["lookup", "join", "limit10000"], | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_where_no_match", | ||
"tags": ["lookup", "join"], | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20 | ||
}, | ||
{ | ||
"operation": "esql_lookup_join_{{idx_suffix[i]}}_keys_where_limit1000", | ||
"tags": ["lookup", "join", "limit1000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{% endfor %} | ||
|
||
{% for i in range(2, 7) %} | ||
{ | ||
"operation": "esql_lookup_join_100k_to_{{idx_suffix[i]}}", | ||
"tags": ["lookup", "join", "limit1000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
}, | ||
{% endfor %} | ||
|
||
{ | ||
"operation": "esql_lookup_join_100k_keys_x10_limit1000", | ||
"tags": ["lookup", "join", "limit1000"], | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 50 | ||
}, | ||
|
||
{ | ||
"operation": "esql_lookup_join_1k_100k_200k_500k", | ||
"tags": ["lookup", "join", "limit1000"], | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50 | ||
} | ||
|
||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% set p_include_non_serverless_index_settings = (include_non_serverless_index_settings | default(build_flavor != "serverless")) %} | ||
|
||
{ | ||
"settings": { | ||
"index.mode": "lookup", | ||
"auto_expand_replicas": {{ auto_expand_replicas | default("0-all") | tojson }} | ||
{# non-serverless-index-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%} | ||
, "index.requests.cache.enable": false | ||
{%- endif -%}{# non-serverless-index-settings-marker-end #} | ||
}, | ||
"mappings": { | ||
"_source": { | ||
"mode": {{ source_mode | default("stored") | tojson }} | ||
}, | ||
"properties": { | ||
"key_100000": { | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters