I started work on a Java class that mimics the functionality of the
mysqldump command today.
My goal is to create a standalone application to begin with, but
design the class such that it can be plugged into any other Java
application requiring MySQL backup capability.
After completing the initial prototype of the dump_table method (minus blob support), I began to wonder what the performance would be like compared to the bundled mysqldump application (written in C).
As this was a prototype with no optimisations, the results were not that bad. The following figures were obtained from running both the C-based mysqldump and the MySQLDump.java app against a fairly large innodb …
[Read more]