![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've only recently began to read about partitions, and I'm not entirely sure that I understand how it works. Here's where I'm reading: http://dev.mysql.com/tech-resources/...artitions.html I have a message board, and the posts are kept in a table. This table currently has about 2 millions rows, and grows by about 3,000 a day. Obviously, the newest posts are accessed the most, and the older they are, the less they're accessed. It's set up like this: id -> mediumint(9) subject -> tinytext postdate -> varchar(14) username -> varchar(50) email -> tinytext comment -> longtext I'm thinking that the database would run faster if I partitioned it by the postdate (eg, 20110324214814 is written, for 3/24/2011, 9:48:14pm). Is that correct? If so, how would this be done? Would I set up a partition for every year, and then check if the postdate begins with that year? Further is it better to have more partitions with less rows in each? Meaning, would it be better to have a partition for each month of a year? Or is any of this even relevant for a table with 2 million rows? |
![]() |
| Thread Tools | |
| Display Modes | |
| |