Samstag, Juli 07, 2012

Interval Partitioning und parallelisierte Zugriffe

Dass Interval Partitioning eine sehr nette Idee ist, deren praktische Realisierung allerdings offenbar eine Menge praktischer Probleme hervorgerufen hat, habe ich gelegentlich angesprochen. Im Pythian-Blog zeigt Christo Kutrovsky nun, dass GROUP BY Operationen über den partition key im Fall von Interval Partitioning nicht auf Partitionsebene ausgeführt werden, was die Operation massiv verteuern kann. Außerdem liefert er auch einen Workaround für entsprechende Fälle:
We need to convert the range-interval table to a pure range table. Fortunately you can do this on the fly, but it requires a quick lock on the entire table. This also moves the “anchor” partition to the highest in the table, which allows you to drop the lowest partitions before the anchor partition.
Oder wie der Dichter sagt: es geht auch anders, aber so geht es auch ...

Keine Kommentare:

Kommentar veröffentlichen