Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku
My account: Login | Sign Up
Loading... 

Re: Large range query stops using indexes | Thread profile

Thread profile page for "Re: Large range query stops using indexes" on http://www.mysql.com. This report page is a snippet summary view from a single thread "Re: Large range query stops using indexes", located on the Message Board at http://www.mysql.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: Re: Large range query stops using indexes
Site: MySQL AB - MySQL Forums  MySQL AB - MySQL Forums - site profile
Forum: Optimizer   Optimizer   - forum profile
Total authors: 2 authors
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: mysql.com

Thread posts in Re: Large range query stops using indexes:

1. 
Started 2 years ago (2007-06-20 11:06:00)  by Solomon Chang
How are index scans a "random read"? Traditionally, indexes are normally B-Trees, unless specified otherwise. (I'm pretty sure that my index in question is a B-Tree). ...of which, I envision the query should an index for range scans as follows: Locate low value, locate high value, parse all in-between branches and return all leaves. It seems not to be doing that. Sigh.
Size: 392 bytes
Customize:  Customize "Re: Large range query stops using indexes :: Optimizer   :: MySQL AB - MySQL Forums"
2. 
Started 2 years ago (2007-06-21 03:20:00)  by KimSeong Loh
Correct, it gets the left most node and the right most node and scan everything in between. However, unlees it is the clustered index, it will have to use the pointer or whatever to read the row having that value in the node in the b-tree. So, there will be a random scan to read the rows that satisfy the range. If the left-most and right-most are near to the left and right end of the ...
Size: 972 bytes
Customize:  Customize "<b>Reply 1</b>: Re: Large range query stops using indexes :: Optimizer   :: MySQL AB - MySQL Forums"
 

Top contributing authors for Re: Large range query stops using indexes

Name
Posts
Solomon Chang
1
user's latest post:
Re: Large range query stops...
Published (2007-06-20 11:06:00)
How are index scans a "random read"? Traditionally, indexes are normally B-Trees, unless specified otherwise. (I'm pretty sure that my index in question is a B-Tree). ...of which, I envision the query should an index for range scans as follows: Locate low value, locate high value, parse all in-between branches and return all leaves. It seems not to be doing that. Sigh.
KimSeong Loh
1
user's latest post:
Re: Large range query stops...
Published (2007-06-21 03:20:00)
Correct, it gets the left most node and the right most node and scan everything in between. However, unlees it is the clustered index, it will have to use the pointer or whatever to read the row having that value in the node in the b-tree. So, there will be a random scan to read the rows that satisfy the range. If the left-most and right-most are near to the left and right end of the tree, meaning it needs to scan huge percentage of the tree,...