I'm trying to partitioning using Range for all days in 2014
PARTITION BY RANGE(UNIX_TIMESTAMP(gps_time)) ( PARTITION p01 VALUES LESS THAN (UNIX_TIMESTAMP('2014-01-01 00:00:00')),
. . . PARTITION p365 VALUES LESS THAN (UNIX_TIMESTAMP('2015-01-01 00:00:00')));
If I insert few lesser rows It's partitioning as expected. sitting in particular partition and that's fine.
But when I try to insert thousands of rows at a time, for instance values which supposed to sit on 2014-07-07 00:00:00 placing at last partition i.e p365.
Another Problem Which I have been facing is...when I type following Query again and again after inserting values into partitions
SELECT partition_name, table_rows FROM information_schema.partitions WHERE table_name = 'vehicle_gps';
The number of rows in each partition changing
why??? Please help me in solving these problems
Thank You :)