Re: MyISAM web site logs 99% write
Posted by:
DBA Lead
Date: September 06, 2010 03:28PM
Bulk inserts (using LOAD DATA INFILE) is probably the most efficient but you might end up hitting some issues since the table won't be empty to start with.
INSERT DELAYED is good if you are ready to loose some inserts in case of server restarts.
Here is what I'd recommend you to do (assuming you want to stick with MyISAM).
Use merge tables one per day and merge all these tables under a single merge table. Use LOAD DATA INFILE to load into the underlying (per day) tables and create a new one for the next day. This will save you a lot of administrative hassle in future.
If you are planning to read from the table then consider using concurrent_inserts=1 and also multi-value inserts by disabling key buffers before the operation and enabling them after the operation.
--------------------------------------------------------------------
Geeks Worldwide --
http://www.geeksww.com/keywords/tutorials/mysql/
Subject
Views
Written By
Posted
3567
June 29, 2010 12:05AM
2326
June 30, 2010 09:10PM
1912
July 01, 2010 03:35AM
Re: MyISAM web site logs 99% write
1732
September 06, 2010 03:28PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.