Re: A first table partitioning exercise.
Stopped and restarted mysql and it seems to be working now. Although it can't just be this stop and restart because I'd already rebooted a number of times only to once again see the old behavior.
A script for non-partitioned first (10X) then the same for partitioned.
mysql> use test
Database changed
mysql> source d:\\projects\\mysql\\test_selects_no_part_tab.sql
+---+----------+
| 1 | count(*) |
+---+----------+
| 1 | 795181 |
+---+----------+
1 row in set (6.81 sec)
+---+----------+
| 2 | count(*) |
+---+----------+
| 2 | 795181 |
+---+----------+
1 row in set (6.56 sec)
+---+----------+
| 3 | count(*) |
+---+----------+
| 3 | 795181 |
+---+----------+
1 row in set (5.55 sec)
+---+----------+
| 4 | count(*) |
+---+----------+
| 4 | 795181 |
+---+----------+
1 row in set (3.42 sec)
+---+----------+
| 5 | count(*) |
+---+----------+
| 5 | 795181 |
+---+----------+
1 row in set (3.44 sec)
+---+----------+
| 6 | count(*) |
+---+----------+
| 6 | 795181 |
+---+----------+
1 row in set (3.45 sec)
+---+----------+
| 7 | count(*) |
+---+----------+
| 7 | 795181 |
+---+----------+
1 row in set (3.44 sec)
+---+----------+
| 8 | count(*) |
+---+----------+
| 8 | 795181 |
+---+----------+
1 row in set (3.45 sec)
+---+----------+
| 9 | count(*) |
+---+----------+
| 9 | 795181 |
+---+----------+
1 row in set (3.45 sec)
+----+----------+
| 10 | count(*) |
+----+----------+
| 10 | 795181 |
+----+----------+
1 row in set (3.48 sec)
mysql> source d:\\projects\\mysql\\test_selects_part_tab.sql
+---+----------+
| 1 | count(*) |
+---+----------+
| 1 | 795181 |
+---+----------+
1 row in set (0.40 sec)
+---+----------+
| 2 | count(*) |
+---+----------+
| 2 | 795181 |
+---+----------+
1 row in set (0.39 sec)
+---+----------+
| 3 | count(*) |
+---+----------+
| 3 | 795181 |
+---+----------+
1 row in set (0.38 sec)
+---+----------+
| 4 | count(*) |
+---+----------+
| 4 | 795181 |
+---+----------+
1 row in set (0.39 sec)
+---+----------+
| 5 | count(*) |
+---+----------+
| 5 | 795181 |
+---+----------+
1 row in set (0.40 sec)
+---+----------+
| 6 | count(*) |
+---+----------+
| 6 | 795181 |
+---+----------+
1 row in set (0.44 sec)
+---+----------+
| 7 | count(*) |
+---+----------+
| 7 | 795181 |
+---+----------+
1 row in set (0.42 sec)
+---+----------+
| 8 | count(*) |
+---+----------+
| 8 | 795181 |
+---+----------+
1 row in set (0.46 sec)
+---+----------+
| 9 | count(*) |
+---+----------+
| 9 | 795181 |
+---+----------+
1 row in set (0.47 sec)
+----+----------+
| 10 | count(*) |
+----+----------+
| 10 | 795181 |
+----+----------+
1 row in set (0.43 sec)
mysql>
mysql>
Subject
Views
Written By
Posted
3254
December 01, 2010 06:15PM
1712
December 01, 2010 06:49PM
1775
December 02, 2010 03:03PM
1828
December 02, 2010 11:00PM
1773
December 03, 2010 03:46PM
2920
December 04, 2010 06:00AM
1696
December 04, 2010 01:40PM
1682
December 04, 2010 05:38PM
Re: A first table partitioning exercise.
1752
December 05, 2010 12:28PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.