igor@olga.mysql.com
cf39429295
Fixed bug#28404.
...
This patch adds cost estimation for the queries with ORDER BY / GROUP BY
and LIMIT.
If there was a ref/range access to the table whose rows were required
to be ordered in the result set the optimizer always employed this access
though a scan by a different index that was compatible with the required
order could be cheaper to produce the first L rows of the result set.
Now for such queries the optimizer makes a choice between the cheapest
ref/range accesses not compatible with the given order and index scans
compatible with it.
2007-08-02 12:45:56 -07:00
..
2007-06-24 19:44:54 +05:00
2007-06-28 12:13:57 +05:00
2007-07-01 11:56:01 +02:00
2007-06-25 22:44:22 -07:00
2007-06-19 11:09:22 +02:00
2007-07-21 02:25:39 +05:00
2007-06-12 15:23:58 -06:00
2007-07-13 19:36:10 +05:00
2007-07-26 05:13:32 +05:00
2007-07-09 03:27:03 -06:00
2007-07-04 14:21:29 +05:00
2007-07-09 01:23:33 +04:00
2007-07-04 16:34:47 +05:00
2007-07-05 19:20:14 +02:00
2007-06-22 17:28:26 +05:00
2007-07-04 12:04:57 +05:00
2007-06-30 20:49:28 -07:00
2007-07-18 15:31:24 -06:00
2007-07-18 15:31:24 -06:00
2007-07-17 13:20:32 +05:00
2007-08-02 12:45:56 -07:00
2007-06-11 17:02:16 +04:00
2007-06-18 16:35:01 +03:00
2007-07-01 11:00:29 -07:00
2007-06-14 13:51:35 +04:00
2007-06-28 21:34:54 +04:00
2007-06-28 16:03:01 -07:00
2007-06-28 16:03:01 -07:00
2007-06-30 13:17:49 +02:00
2007-06-15 01:57:33 +02:00
2007-06-17 09:56:33 +05:00
2007-07-06 11:35:10 -07:00
2007-07-13 03:29:25 +05:00
2007-07-13 03:29:25 +05:00
2007-07-20 04:04:57 +05:00
2007-06-13 14:16:39 +05:00
2007-06-18 17:08:56 +05:00
2007-07-11 12:44:49 +03:00
2007-07-07 20:14:06 +05:00
2007-06-11 17:14:16 +04:00
2007-06-26 13:15:43 +02:00
2007-06-15 11:15:22 -06:00
2007-06-12 15:10:33 +03:00
2007-06-24 19:06:09 -07:00
2007-07-26 01:23:39 +05:00
2007-07-16 23:31:36 +04:00
2007-07-23 17:07:29 +03:00
2007-07-10 05:37:43 -06:00
2007-07-21 17:54:23 +04:00
2007-06-24 03:35:27 +05:00
2007-06-15 01:57:33 +02:00
2007-07-11 18:45:35 -07:00
2007-06-20 19:05:38 +04:00
2007-06-21 22:08:14 -04:00
2007-07-07 20:14:06 +05:00
2007-06-13 22:05:22 -06:00
2007-06-11 23:06:20 +04:00
2007-06-11 23:06:20 +04:00
2007-06-11 23:06:20 +04:00
2007-06-16 13:14:23 +02:00
2007-06-20 14:21:48 +05:00
2007-06-21 20:55:37 +02:00
2007-06-24 03:35:27 +05:00
2007-07-21 05:32:01 +05:00
2007-07-13 00:45:54 -04:00
2007-08-02 12:45:56 -07:00
2007-06-13 17:28:59 +02:00
2007-06-13 17:28:59 +02:00
2007-06-13 17:28:59 +02:00
2007-06-26 13:15:43 +02:00
2007-07-02 18:08:27 +02:00
2007-06-13 17:28:59 +02:00
2007-06-13 17:28:59 +02:00
2007-07-02 20:11:54 +02:00
2007-06-22 15:23:51 +02:00
2007-07-17 00:59:21 +04:00
2007-07-27 17:55:39 +03:00
2007-06-15 01:57:33 +02:00
2007-06-28 21:34:54 +04:00
2007-06-22 11:55:48 +02:00
2007-06-22 15:39:34 +02:00
2007-07-18 17:09:03 +04:00
2007-07-22 01:58:37 +05:00
2007-07-12 22:06:33 -04:00
2007-06-30 03:47:03 +02:00
2007-07-05 19:20:14 +02:00
2007-07-14 01:34:46 +05:00
2007-07-12 22:26:41 +04:00
2007-07-19 19:42:24 +04:00
2007-06-11 00:16:00 +04:00
2007-06-13 09:32:36 -07:00
2007-07-26 01:23:39 +05:00
2007-07-07 17:29:19 -07:00
2007-07-15 21:51:36 +04:00
2007-06-18 20:01:04 -04:00
2007-06-12 15:23:58 -06:00
2007-07-07 20:14:06 +05:00
2007-06-27 14:04:29 +02:00
2007-07-02 14:22:03 -04:00