views:

273

answers:

2

I'm tying to execute a query in phpMyAdmin. The query takes approximately two minutes to load, but at the top of the query results it says that the "Query took 0.2768 sec". How is this possible?

A: 

The query executed fast, but phpMyAdmin took a long time to load it.

McWafflestix
Right, but why would that happen? For other queries there doesn't seem to be a disconnect between phpMyAdmin load time and the query execution time, so my phpMyAdmin isn't systematically slow. It's something about this query.
Jack7890
+4  A: 

The larger your resultset, the slower phpMyAdmin is. The phpMyAdmin script receives the query result from MySQL in 0.2768 seconds. It then must parse the thousands of rows/columns of data in this and apply all the markup necessary to display it in your browser. This eats up time, and memory. I suggest using a command-line client if speed is a concern.

hobodave
That makes sense, thanks hobodave. Is that the case even if I set LIMIT 0,30?
Jack7890
That should speed up the php side of things, yes.
hobodave