MySQL Forums
Forum List  »  InnoDB

Re: InnoDB Partition Statistics
Posted by: David Ishmael
Date: April 24, 2014 08:51PM

I have a large table of records partitioned by a date field, specifically by the month the record is created. However, the records could be updated throughout the year. Right now, I use a script to parse each partition to see the last date a record was updated on each partition.

[pseudocode]
for Partition p in Partitions do
date = select max(lastoccurrence) from records partitions (p)
if date >= last check then
run additional statistics against p
done
done

This is a non-issue with the MyISAM database engine since it updates the updated field in the information_schema table. Unfortunately the InnoDB engine does not seem to update that field. This leaves me wondering how others are acquiring partition statistics, specifically the last time a partition was updated.

Options: ReplyQuote


Subject
Views
Written By
Posted
1247
April 23, 2014 07:56AM
740
April 24, 2014 08:10PM
Re: InnoDB Partition Statistics
767
April 24, 2014 08:51PM
789
April 25, 2014 08:29PM


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.