php script 1 -INSERT 500 record per second and
php script 2 -UPDATE some data to that table (500 per second)
Web application SELECT data to the database to view data, draw statistic, etc
My problem is, it take long loading time to view data while the application inserting/updating data to table same time.
can anyone provide a solution for this?
Thanks in advance
If your
SELECTclauses are mostly aggregate data or it’s not mission critical that they be absolutely accurate every time they are called, you could try changing the isolation level toREAD COMMITTED, orREAD UNCOMMITTEDwhich should give you a speed increase on theSELECTclause. You can read about the differences here:http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html