![]() |
Showing public poll results = damn slow?
It seems like displaying results of public posts on my board is damn slow.
Looking at the queries I found that for each option there is one query, which takes kinde long to execute. Example: Code:
SELECT user.userid,user.username Any idea as to why these queries are that slow and how this could be optimized (vB3)? |
Hmm, it isn't that slow on my testboard here, but i threw together a little optimization.
can you test it for me and post the results, i'll then release it in the optimization forum :) (attachment can now be found: https://vborg.vbsupport.ru/showthread.php?t=66694) |
Although my code (which I wrote in the meanwhile) is slightly differnt it is basically the same as yours (without the USING part) :)
And this gave a HUGE performance boost: Page generation time went down approx. 5 seconds for the poll I tested. |
:)
perfect, then i can release it :) |
Bad mistake on part of the Vbulletin Dev's. Report it to the bugtracker if you already havn't.
|
well, everyone can make a mistake :)
even so, a query in a loop is a real big mistake, but hey, noones perfect. i'm sure it will be fixed in vb302 ^^ |
Good bug find!
|
All times are GMT. The time now is 03:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|