Jun 4, 2006 #1 altendew Programmer Mar 29, 2005 154 US Hi I currently have this query. Code: SELECT sum( worth ),sum( burst ) FROM 3280266_spends WHERE donation = '0' This sometimes runs through 70,000 rows.. what would be the best way to index this?
Hi I currently have this query. Code: SELECT sum( worth ),sum( burst ) FROM 3280266_spends WHERE donation = '0' This sometimes runs through 70,000 rows.. what would be the best way to index this?
Jun 6, 2006 Thread starter #2 altendew Programmer Mar 29, 2005 154 US Here is the solution Code: ALTER TABLE 324632_spends ADD INDEX ( `donation` , `worth` , `burst` ) Upvote 0 Downvote