My database server's CPU has been pegged for the last two hours and the site is down as a result. Looking at the process list, I see dozens of queries that all begin "SELECT DISTINCT node.nid AS nid," and from my reading, it appears that this should not be a common occurrence because these queries are very expensive and this could be the source of my problems.
Is it safe to say there is a view or module making a query incorrectly and if so, how can I can track that query down?