Skip to content

Comment on TC Slows Hacker News - Start the Arc can't scale rants.parent

Comments

  EXPLAIN SELECT username FROM users WHERE username = $dc_user
Then look at the output, and either
  CREATE INDEX users_username ON users(username)
Or cache the result, or do something else to fix the performance problem...

If you meant "How do you find out it was in the registration check?", that's what the slow query log and query profilers are for...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.