The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Questions about query_read() vs. query_read_slave()
I'm developing a plugin with a lot of SQL reads and I'd like to optimize it as much as possible. One optimization I'd like like to look into is switching all of my query_read functions to query_read_slave functions.
I've read that query_read_slave() should be used when timing is not vital (source).
I've also read that "you only use query_read_slave when you have more than 1 query running together" (source).
If you guys can answer some of these questions, I would be very grateful. |
#2
|
|||
|
|||
If there is no slave database, there should be no increase or descrease in performance.
Displaying the result of a search is for example not considered critical, reading the permissions of a user in order to determine if the post he is making is allowed might be critical. |
#3
|
|||
|
|||
Alrighty. Thanks for clearing that up!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|