http://blog.metaoptimize.com/2009/10/14/use-flag-xml-when-you-run-mysqldump/
Does anyone have a critique of this position?
Best,
Joseph
Let me answer your last question first:
> 4. Why aren’t you using postgres ?
I was getting data from someone that uses MySQL.
Knowing what I know now, I believe should should have advised him to
use the –xml flag.
> 1. I am friends with awk & pals, and stripping out INSERT .. VALUE from
> mysql dumps that I get from people is no biggy
I am friends with perl, and you cannot simply split using /,/ to get
your fields. The comma might be right in the middle of a string.
With XML, though, it is simple to grep for <row>, because you know
100% that < will only be in the markup.
> 2. I’m pretty sure MySQL supports dumping table data as CSV (SELECT …
> OUTHOUSE ‘/tmp/file.csv’ …)
Same problems as above.
> 3. For big data, XML is just silly big.
Why? It gzips easily.
Not being able to load it all into memory is less of an issue if it is
easy to split the data using regular expressions.