Log in

View Full Version : Just a quick question about queries...


obiwan8472
05-26-2003, 10:27 PM
Is 38 queries bad for a postbit?
And is 24 queries bad for the main forum summary page?
Thanks for any help!

cirisme
05-26-2003, 10:31 PM
I normally check the page generated time.

For me, .5 is just too much. I try to get it down to .3 or .2 as much as possible. But it varies with serverload. :)

Gary King
05-26-2003, 10:52 PM
38 queries is quite a lot for showthread. Also, check the time it takes to generate the page as well.

filburt1
05-26-2003, 10:57 PM
Today at 07:27 PM obiwan8472 said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=400308#post400308)
Is 38 queries bad for a postbit?
And is 24 queries bad for the main forum summary page?
Thanks for any help!

For a postbit, it's insane because no queries should be made in a postbit. In showthread, it's high.
24 is fine for forumhome although starting to get high.

obiwan8472
05-26-2003, 11:37 PM
sorry meant showthread.
Page generated in 0.13979399 seconds. mind u its only a test forum at present i have opened it to public yet. some tinkering needed me thinks

N!ck
05-27-2003, 12:49 AM
There's an optimization hack somewhere, just do a search.

Erwin
05-27-2003, 12:51 AM
38 is quite bit. Find out if it's something being looped - try increasing the number of posts per showthread page - if the queries increase per post, then you are looping something, and you should get rid of it.

sonic3d
05-27-2003, 11:52 PM
how do i find the loop, cuz my showthread is 64 queries with 24 replies and 36 with zero replies. can u check it for me? if not where do i search for it?

l8er
sonic

Mijae
05-28-2003, 03:02 PM
Its probably some of the RPG stuff you added, I had the same problem (50 queries at 10 replies).

cirisme
06-04-2003, 08:15 PM
how do i find the loop, cuz my showthread is 64 queries with 24 replies and 36 with zero replies. can u check it for me? if not where do i search for it?

If you turn debug mode on, then add "&showqueries=1" in the URL, you can see the exact queries that are running.

We used to have 49 queries on showthread, and I found out that was because of the awards hack I installed. Now I cache the result, and we regularly have fewer than 35 queries. :)

Erwin
06-04-2003, 11:19 PM
My private showthreads is 21, and I have heaps of hacks there.

sonic3d
06-06-2003, 06:01 PM
06-04-03 at 04:15 PM cirisme said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=404469#post404469)
If you turn debug mode on, then add "&showqueries=1" in the URL, you can see the exact queries that are running.



thanx it worked. now its around 38.

l8er
sonic