Details
Description
See details in the attached test case. If we create the right spread of values in the key and pick the range just right, when rowid_filter optimizer switch is enabled, the optimizer will sacrifice a part of the key for the rowid_filter. As a result we use only the u_delete_user and end up examining 5K+ rows out of 10K in the table. If we disable rowid_filter, the user_name constraint is being used, and we examine only 1 row.
Attachments
Issue Links
- causes
-
MDEV-30142 rowid_filter: negative access cost factor values
-
- Closed
-
- duplicates
-
MDEV-19720 Server crash in st_join_table::save_explain_data or Assertion `sel->quick' failed in JOIN::make_range_rowid_filters with rowid_filter=on
-
- Closed
-
- is caused by
-
MDEV-16188 Use in-memory PK filters built from range index scans
-
- Closed
-
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.4 [ 22408 ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Sergei Petrunia [ psergey ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34026 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34027 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34045 ] |
Summary | rowid_filter optimization results in failure to use the full length of the key | Poor performance when rowid filter contains no elements |
Component/s | Optimizer [ 10200 ] |
Assignee | Sergei Petrunia [ psergey ] | Igor Babaev [ igor ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34048 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34057 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34087 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34109 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34122 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34220 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34230 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Labels | not-10.5 |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34239 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34246 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34254 ] |
Attachment | optimizer-trace-rowid-filter-on.txt [ 65028 ] | |
Attachment | optimizer-trace-rowid-filter-off.txt [ 65029 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34268 ] |
Link |
This issue is caused by |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34316 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34441 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34448 ] |
Status | In Progress [ 3 ] | Needs Feedback [ 10501 ] |
Assignee | Igor Babaev [ igor ] | Rob Schwyzer [ JIRAUSER40844 ] |
Assignee | Rob Schwyzer [ JIRAUSER40844 ] | Igor Babaev [ igor ] |
Status | Needs Feedback [ 10501 ] | Open [ 1 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34220 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34465 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34471 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34488 ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34507 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34519 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34532 ] |
Assignee | Igor Babaev [ igor ] | Oleksandr Byelkin [ sanja ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34542 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Igor Babaev [ igor ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34605 ] |
Fix Version/s | 10.4.27 [ 28405 ] | |
Fix Version/s | 10.5.18 [ 28421 ] | |
Fix Version/s | 10.6.11 [ 28441 ] | |
Fix Version/s | 10.7.7 [ 28442 ] | |
Fix Version/s | 10.8.6 [ 28443 ] | |
Fix Version/s | 10.9.4 [ 28444 ] | |
Fix Version/s | 10.10.2 [ 28410 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34615 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34027 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34626 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 34048 ] |
Link |
This issue causes |
Link |
This issue duplicates |
Zendesk Related Tickets | 201658 172577 | |
Zendesk active tickets | 201658 |