"djhowarth, post: 73144":TorrentialStorm implemented Caching... I Would say memcache with file cache as a backup is your best option, so cache more things. About 90% of TT can be cached. Things like searches and that its not really good to cache but still u can cache peers and things.
Alot of people use queries like SELECT * FROM myTable only select the fields u need its quicker... for example
SELECT username FROM users...
Peers shouldn't be cached because it's important to keep realtime data between bittorrent clients. I advice to alter table "peer" with MEMORY MySQL engine because it's very fast and if MySQL crash, the table is quickly repopulated again.
For the legend of not using SELECT *, it's only true when you have a remote SQL server and you've to reduce bandwidth usage. But when HTTP+SQL are working on the same server, it's counter-productive because you're gonna to cache 10 queries for the same user when you're selecting specifics columns.
For jenny2009's TT version i've cached entire tables into memcache and working only with large tree-arrays. Very powerful to do a shuffle() on it, instead of a ORDER By RAND() :D