by wacheena · 15y ago · 0 comments
All we did was add a couple intval() calls into our php script and changed the column to big int AND add an index and we had one 30s query go down to 0.6s.
So:
Use ints whenever possible. Index.
"Index" is by far the big lesson here.
Also, 0.6s is still way too high. What kind of funky join are you doing?