MySQL Cluster is well known as an in-memory database which can be
restrictive (a server typically has a RAM limit) so it may
surprise some to learn that you can also store MySQL Cluster data
on disk. Disk Data Tables have been in MySQL Cluster for
quite a while, the first GA release with them included was
6.2. They do have caveats which I will describe here, many
of which already have plans to be improved in future
versions.
How Disk Data Tables work
A set of UNDO logs and data files can be created which are on every data node in the cluster. The UNDO logs bring the disk data back to a consistent point so that during node restart the REDO logs can be replayed when a node is started.
Not all data in a disk table is actually stored on disk, the main two things that are not are indexed columns (the entire column is in main memory, not just the index) and the first 256 bytes of a …
[Read more]