PDA

View Full Version : DB Optimization


GaleForce
05-04-2003, 04:26 AM
Anyone know a way I could optimize my Database so that a full page in a thread isn't doing over 300 queries. Its not so much that my site is slow, go to www.kotorpa.com/forum and check out a thread with more than one page. It loads quickly, but if you look at the bottom of a full page it will tell you (since I have the hack installed) that it had to fo over 300 queries. Its more, I'm not really sure, just 300 queries doesn't sound too good :p

GaleForce
05-04-2003, 04:42 PM
Page generated in 0.57712901 seconds (57.00% PHP - 43.00% MySQL) with 304 queries.

Don't lynch me! My pages load fast anyway, its just that they could load even faster! Muahaha

:banana:

filburt1
05-04-2003, 05:13 PM
Get rid of all unnecessary hacks.

GaleForce
05-04-2003, 06:35 PM
We really don't have any hacks that we don't use. I was thinking more along the lines of merging queries and stuff.

Xenon
05-04-2003, 07:55 PM
remove the queries from getpostbit() and the while loop in showthread.php

GaleForce
05-04-2003, 08:06 PM
Will that /nerf the features or anything?

Xenon
05-04-2003, 08:10 PM
normally yes :)

but hack which have queries in the whileloop or in the getpostbit function are crappy coded, maybe you'll find a better version for such hacks