I'm working on a projects which involves a lot of database writes, I'd say (70% inserts and 30% reads). This ratio would also include updates which I consider to be one read and one write. The reads can be dirty (e.g. I don't need 100% accurate information at the time of read).
The task in question will be doing over 1 million database transactions an hour.
I've read a bunch of stuff on the web about the differences between MyISAM and InnoDB, and MyISAM seems like the obvious choice to me for the particular database/tables that I'll be using for this task. From what I seem to be reading, InnoDB is good if transactions are needed since row level locking is supported.
Does anybody have any experience with this type of load (or higher)? Is MyISAM the way to go?
Perbedaan utama antara MyISAM dan INNODB adalah: MyISAM tidak mendukung transaksi berdasarkan tabel sementara InnoDB mendukung. Tidak ada kemungkinan penguncian tingkat baris, integritas relasional di MyISAM tetapi dengan InnoDB ini dimungkinkan. MyISAM memiliki penguncian tingkat-tabel.
InnoDB adalah mesin penyimpanan default untuk MySQL pada MySQL 5.5. Mesin ini menyediakan fitur transaksi standar ACID-compliant, bersama dengan dukungan foreign key (Referential Integrity deklaratif).
I have briefly discussed this question in a table so you can conclude whether to go with InnoDB or MyISAM.
Here is a small overview of which db storage engine you should use in which situation:
MyISAM InnoDB ---------------------------------------------------------------- Required full-text search Yes 5.6.4 ---------------------------------------------------------------- Require transactions Yes ---------------------------------------------------------------- Frequent select queries Yes ---------------------------------------------------------------- Frequent insert, update, delete Yes ---------------------------------------------------------------- Row locking (multi processing on single table) Yes ---------------------------------------------------------------- Relational base design Yes
Summary
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With