by DDurante 19 May 2010, 09:46
One less query wouldn't do much? Seriously? Guys, any DB administrator will tell you, "It only takes one query to f@@# up your server." Now, I'm not saying your DB and queries aren't optimized, but what I am saying is that the ONE query is being triggered a bunch of times for every heartbeat, every page load, multiply that by the amount of users you have online at once using the program, and etc.
Things that do not need constant updating...
Chat list <-- FB uses memcache for their system on this...it just refreshes every 3-5 seconds rather than every click/load.
Chat history <-- Pull up the query, cache it, then pull up the cache until the session is over (you could really set the TTL to a high number).
# of online users <-- Same thing as chat list
Member searching <-- Caching this would also be ideal. Search takes up a lot of server resources (unless it's running on a sphinx architecture) so yer caching this would also benefit a lot. :)
Either way, the program looks great and with your .1.31 update it seems like you guys nailed a lot of performance issues. Does anyone here have AC installed on a server with a lot of traffic? And I have a copy of CometCrap as well, but it seems like AC runs a lot better (although I just heard they came out with 2.0....hopefully it isn't better :P)