Re: Modify primary key for partitioning
Posted by:
Aftab Khan
Date: August 23, 2012 10:42AM
How much RAM do you have on the server?
Can we see MySQL config file i.e. /etc/my.cnf
You are using 'COMPRESSED' row format with the table, if the compression works well and it would help reduce table size significantly, then table's data would be more cache-able (but it depends how much RAM do you have ?). And the numbers you have provided i.e. current table size 300k and each month it gets 60k rows. What's the table size now i.e. SHOW TABLE STATUS (As James asked for)
Partitioning can be useful:
1.When the table is too big to fit in memory or when you have lots of historic data that is frequently accessed.
2. It is easier to discard old partitioned than non-partitioned data but in your case this isn't the case.
3. You can use partitioning to avoid some bottlenecks (e.g. pre-index mutexes with Innodb) in specific workloads but this may not be the case for you.
How do you load data into the table? single insert or batch insert e.g. load data infile or insert into values (...),(...)...
Subject
Views
Written By
Posted
3121
August 10, 2012 10:29AM
1746
August 18, 2012 09:39PM
2025
August 20, 2012 06:33AM
1776
August 22, 2012 10:16AM
1863
August 23, 2012 09:16AM
Re: Modify primary key for partitioning
1744
August 23, 2012 10:42AM
1744
August 28, 2012 10:14AM
1740
August 30, 2012 10:26PM
2185
August 31, 2012 03:05AM
1756
August 31, 2012 03:38AM
1699
August 31, 2012 06:48AM
1784
August 31, 2012 09:39AM
1673
September 04, 2012 01:02AM
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.