From the docs, it states:
The CSV storage engine stores data in text files using comma-separated values format.
What are the advantages of this? Here are some I can think of:
- You can edit the CSV files using simple text editor (however, you can export data easily using
SELECT INTO OUTFILE
) - Can be easily imported into Spreadsheet programs
- Lightweight and maybe better performance (wild guess)
What are some disadvantages?
- No indexing
- Cannot be partitioned
- No transactions
- Cannot have NULL values
Granted this (non-exhaustive) list of advantages and disadvantages, in what practical scenarios should I consider using the CSV storage engine over others?
SELECT INTO OUTFILE
to get CSV from a regular table, I would find little utility in working with the CSV engine format unless you happens to have an application that needed to work directly with this data locally without having access to mysql daemon and had some other application that was continually modifying the table via MySQL. Even then locking the table for reads/writes would be a nightmare.