Skip to content
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

Left fuzzy queries are much slower than other fuzzy queries. #6880

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

Left fuzzy queries are much slower than other fuzzy queries. #6880

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
enhancement New feature or request SQL

Comments

@monetdb-team
Copy link

Date: 2020-06-09 11:18:20 +0200
From: xavier <>
To: SQL devs <>
Version: 11.37.7 (Jun2020)
CC: @PedroTadim

Last updated: 2020-07-27 09:30:13 +0200

Comment 27800

Date: 2020-06-09 11:18:20 +0200
From: xavier <>

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36
Build Identifier:

Using 200 million pieces of data for query, the left fuzzy query takes longer than other query statements.
SQL 1:select * from t1 where id like '%584049';
SQL 2: select * from t1 where id like '%170711%';
For example, full fuzzy query(SQL 2) returns a result set of 5000+, which takes 386ms,.However, it takes 915ms for the left fuzzy query to return 59 results.

Reproducible: Always

Steps to Reproduce:

1.select * from t1 where id like '%584049';

Actual Results:

The concurrent execution of left fuzzy query performance is more obvious.

Is there any way to improve the performance of left fuzzy queries?

Comment 27803

Date: 2020-06-09 11:46:42 +0200
From: @PedroTadim

Hello xavier,

We have been fixing the optimization of simple like expressions this past week. Expressions such as '%584049' will use a faster route on Jun2020-SP1 release.

Best regards,
Pedro

Comment 27809

Date: 2020-06-10 03:32:41 +0200
From: xavier <>

Thanks.
Looking forward to the new version.

Best wishes,
Xavier.

@monetdb-team monetdb-team added enhancement New feature or request SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SQL
Projects
None yet
Development

No branches or pull requests

2 participants