Jump to content

Way to speed up queries on a really large table?


tibberous

Recommended Posts

Millions? Jeez, I hope for your sake thats account payments =]

 

Only time I ever had millions of anything was when someone spammed me.

 

Make sure you only select needed queries, no *'s to be honest, but don't expect too much, ex. PHPMyAdmin, very slow, but it has an excuse, likewise with you. Make sure your keys are correct, and you should be reasonably fast.

Make sure you only select needed queries, no *'s to be honest, but don't expect too much, ex. PHPMyAdmin, very slow, but it has an excuse, likewise with you. Make sure your keys are correct, and you should be reasonably fast.

 

PhpMyAdmin doesn't control your MySQL its a tool to aid in it.

 

This is the tips I have to optimizing a query(s)

1) Reduce your number of queries to the least number that makes sense

1a) Do so by proper use of JOINs

2) Make queries as simple as possible

3) Make queries as specific as possible

To achieve step 3

3a) Use Limits on large data sets and pagination to page results

3b) Use a very specific while loop

3c) Use group by/order by properly

 

a another random tip I have found is CONCAT is a very powerful function.  If you are going to take a url straight to an anchor tag use CONCAT and query it out like that.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.