Bug #21191 | records_in_range error in MySQL Cluster | ||
---|---|---|---|
Submitted: | 20 Jul 2006 19:12 | Modified: | 10 May 2007 10:12 |
Reporter: | Mikael Ronström | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1.12-beta-debug | OS: | Linux (Fedora Core 5) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[20 Jul 2006 19:12]
Mikael Ronström
[22 Jul 2006 8:39]
Jonas Oreland
Shouldnt we always use ranges if there are any?
[22 Jul 2006 13:17]
Mikael Ronström
There are a number of cases where a range should not be used. 1) When there exists a better range to use 2) When we have implemented TUP Disk scan (or have we already, don't remember) in that case a full table scan can be 20 times faster per record. So this means that we should still deliver a reasonable result for records_in_range but we should avoid a result that is very large (e.g. larger than 5% of the records) unless we have safe statitics or a real measure of that The current idea I have is the following: Measure for all cached statistics the mean value of ranges + the standard deviation of ranges. For intervals that contain uncertainty never deliver anything which is bigger than either of 1) 5% of records 2) 5 * standard deviation + mean value (99.9% confidence interval) If we have three measurements a1 < a2 < a3 and we get a range from [a0, a21] where a0 < a1 and a2 < a21 < a3. In this case we'll use the interval [a1,a2] even if it is very big since it is based on a measurement but for the intervals [a0,a1] and [a2,a21] we use a much more cautios approach. The cache replacement algorithm should also strive to delete one of close neighbours as much as possible to ensure that the sampling points are not too close to each other.
[13 Sep 2006 10:28]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/11827 ChangeSet@1.2308, 2006-09-13 12:27:48+02:00, pekka@orca.ndb.mysql.com +2 -0 ndb - bug#21191: ndb index stats OFF by default
[13 Sep 2006 10:47]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/11829 ChangeSet@1.2309, 2006-09-13 12:46:26+02:00, pekka@orca.ndb.mysql.com +1 -0 ndb - bug#21191: ndb-index-stat-enable: one more suspicious default
[1 Oct 2006 14:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/12920 ChangeSet@1.2310, 2006-10-01 16:05:53+02:00, pekka@orca.ndb.mysql.com +2 -0 ndb - bug#21191: test pgm: testIndexStat
[13 Mar 2014 13:35]
Omer Barnir
This bug is not scheduled to be fixed at this time.