MySQL slow?
#9

The server isn't frozen when using mysql_function_query.
This is instant as well as the server starts as fast as without using MySQL.
Only the queries take so much time to be processed in the background.

To time it right (waiting until queries are actually executed), I used mysql_query instead.

Try your same code this way (with your 1 million queries):
- start server
- end server immediately using CTRL C on the console window

You'll see it takes a while to shutdown as the queries are still being processed in the background.
Empty your database first so the data can be inserted.


I'll try updating the database with the same values when the data is already in place to see how long that takes.
So the UPDATE queries should overwrite all data instead of adding it.
Reply


Messages In This Thread
MySQL slow? - by PowerPC603 - 24.01.2014, 17:21
Re: MySQL slow? - by Memoryz - 24.01.2014, 17:33
Re: MySQL slow? - by PowerPC603 - 24.01.2014, 17:35
Re: MySQL slow? - by iZN - 24.01.2014, 17:38
Re: MySQL slow? - by gtaplayer1 - 24.01.2014, 17:41
Re: MySQL slow? - by Michael@Belgium - 24.01.2014, 17:44
Re: MySQL slow? - by PowerPC603 - 24.01.2014, 18:01
Re: MySQL slow? - by InfiniTy. - 24.01.2014, 18:04
Re: MySQL slow? - by PowerPC603 - 24.01.2014, 18:10
Re: MySQL slow? - by InfiniTy. - 24.01.2014, 18:32

Forum Jump:


Users browsing this thread: 4 Guest(s)