News for hackers. Stuff that matters.
Re:Ask HN: How do I prevent database bottlenecks on my web a... by dangrossman on Tuesday August 24, 2010 @03:56AM (#1629244)
Defining the right indexes is the key until you outgrow the RAM in the server. You can be crawling with one schema, define a few indexes, and suddenly be able to handle a hundred times more activity. What indexes are right depends on what queries you need to execute, not just what data's in the tables, so read up on how indexes are used by your RDBMS, not just how they're defined.
Re:Ask HN: How do I prevent database bottlenecks on my web a... by trevelyan on Tuesday August 24, 2010 @07:42AM (#1629497)
SHOW PROCESSLIST in mysql should show running queries. A useful way to see which queries are taking up time and where you need to add indexes.