Home > Programming > You Never Know Who You’re Helping

You Never Know Who You’re Helping

Talking in the #cakephp channel (just replaced some info):

  • someguy: anyone know how I could improve the mysql index for a where of WHERE ((some_field < 3) OR (some_field = 1)) AND otherfield_id = (1006)
  • me: someguy, what about to add an index for otherfield_id ?
  • someguy: that did improve it
  • someguy: heh, I already did the first to on the production db
  • someguy: cpu usage went down
  • me: cool
  • someguy: yeah
  • someguy: the DB had become the bottleneck
  • me: is that a public site ?
  • someguy: yes
  • me: can i see it ?
  • someguy: http://www.missuniverse.com

LOL :D

Categories: Programming Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.