Currently, long IN value lists are handled recursively and translated into deeply nested term queries, which can lead to performance issues. This approach is inefficient for handling large sets of values in SQL translations.
What solution would you like?
The solution needs further exploration, but the key steps should include:
Optimizing the recursion in the Analyzer and FilterQueryBuilder.
Replacing the deeply nested Term queries with the OpenSearch Terms query which seems better suited for handling large collections of values.
Is your feature request related to a problem?
Currently, long
IN
value lists are handled recursively and translated into deeply nested term queries, which can lead to performance issues. This approach is inefficient for handling large sets of values in SQL translations.What solution would you like?
The solution needs further exploration, but the key steps should include:
Analyzer
andFilterQueryBuilder
.What alternatives have you considered?
N/A
Do you have any additional context?
Example: