This will just be a short reminder. If you're planning to create multiple-column indexes in MySQL, remember that the order of the columns matters. As the MySQL documentation points out, any "leftmost prefix of the index can be used." This means that the index can be used for any number …
MySQL Multiple-Column Indexes: Order Matters
Posted on in Programming
If you need to debug what queries your WordPress site is making, try adding the
following PHP to your theme:
I'm writing this post for two reasons:
I was recently helping a developer with some SQL optimizations in Ruby. The developer was using Active Record, and (until now) my Active Record experience has been pretty minimal.