Too Many Queries – are db procedures the answer?
-
Our WP database crashed several times. When our server support looked into it they found that there were too many connections to the db.
There used to be 20k connections allowed to the db, but the technician removed this limit.
But this strikes me as being bandaid solution which doesn’t really address the underlying problem which is one of code.
We have several heavy queries which get specific sets of users from the db and which need to do lots of checks.
So I’m wondering, do you think that it would be beneficial to write MySQL procedures/functions to help out? Or is this simply a matter of poor query coding?
Or maybe this: we’re using get_users( $args ) for these queries; would it be better to use SQL queries directly? Just a thought!
Any help or ideas appreciated!
- The topic ‘Too Many Queries – are db procedures the answer?’ is closed to new replies.