Quote:
Originally Posted by shyguy82
The developer of this mod should optimize his code a little bit. His queries are very expensive. There is an INDEX missing on the USERNAME field in post_thanks table. I found it the hard way, I have a pretty busy site with 250k users. My post_thanks contains more than 3 million records already and the performance was sluggish. I've checked the query and it was doing a full table scan because he is ordering by username. I've added an index on username column and the problem goes away. Just an FYI
|
I'm gunshy about mucking with tables. Can you elaborate just a bit on this? Do you just add an index on that field in the table and that's it? You didn't have to do anything with the SQL inside the code?