aecd9ac515
Today we check every regular expression eagerly against every possible term. This can be very slow if you have lots of unique terms, and even the bottleneck if your query is selective. This commit switches to Lucene regular expressions instead of Java (not exactly the same syntax yet most existing regular expressions should keep working) and uses the same logic as RegExpQuery to intersect the regular expression with the terms dictionary. I wrote a quick benchmark (in the PR) to make sure it made things faster and the same request that took 750ms on master now takes 74ms with this change. Close #7526 |
||
---|---|---|
.. | ||
index.asciidoc | ||
migrate_1_0.asciidoc | ||
migrate_1_4.asciidoc | ||
migrate_2_0.asciidoc |