[MDEV-4120] UNIQUE indexes should not be considered for loose index scan Created: 2013-01-31  Updated: 2014-11-19  Resolved: 2013-08-21

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 10.0.5

Type: Task Priority: Minor
Reporter: Timour Katchaounov (Inactive) Assignee: Timour Katchaounov (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-7118 Anemometer stop working after upgrade... Closed

 Description   

Currently the loose scan code in opt_range.cc considers all indexes as possible for the access method. Due to inexact statistics it may happen that a loose scan is selected over a unique index.

This is clearly wrong since a "loose scan" over a unique index will read the same keys as a direct index scan, but the loose scan has more overhead.



 Comments   
Comment by Timour Katchaounov (Inactive) [ 2013-06-03 ]

Assigned to SergeyP for review.

Comment by Sergei Petrunia [ 2013-08-20 ]

Patch approved with comments (see email)

Generated at Thu Feb 08 06:53:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.