Should I use MyISAM or InnoDB table format?
For any project with frequent concurrent reads and writes, you must use InnoDB .
Does MyISAM write the entire table during insertion, thereby blocking selection operations from the web interface?
With @@concurrent_insert enabled, MyISAM can append pasted lines to the end, while still reading from another session at the same time.
However, if you have ever received anything other than INSERT , this can lead to a crash (for example, a table will lock).
The system should be able to insert 1000-2000 records every second.
It would be better to perform these inserts and do them in packages.
InnoDB much faster than the number of rows per second.
The last 24 hours of data will be stored in the data table, older data is deleted from the table.
Note that InnoDB blocks all checked rows, not just the affected ones.
If your DELETE ever uses full-screen mode, parallel INSERTs will fail (since fullscan will do InnoDB to put space locks on all records viewed, including the last).
Quassnoi
source share