![]() |
Too many queries?
Can anyone help me identify what this is doing? As far as I can tell (I don't know much about programming) it's causing 15 queries on showthread. :erm:
Code:
SELECT If anyone is feeling helpful, here's another. This one appears to be running for every user who posts in a thread, so the three queries are being repeated for each user. Obviously this is a problem. Code:
SELECT |
A "JOIN" is not a separate query. Each code block you posted is one query.
|
Thanks, Lynne. That makes sense now.
|
Instead of running one query for each user with the queries are different from each other on the 'WHERE' part like:
... WHERE user.userid = '12' ... WHERE user.userid = '222' ... WHERE user.userid = '109' you can combine them all into one query by using ... WHERE user.userid IN ('12', '222', '109') I'm not sure where the queries came from but if they were introduced by a mod you've installed, it's better to contact the mod creator to fix the queries. seriously, mod coders should always think about optimization at all time when coding their mods. |
Yes, that's the issue: this query is being repeated for each user, hence the number going up depending on how many people respond to a thread. I need to figure out which mod is causing it.
|
Quote:
|
All times are GMT. The time now is 02:33 AM. |
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:
|