![]() |
Is this page too server intensive?
I have a custom vB page on the site that pulls user data and sorts it. I have some stats turned on and this is what shows up for this page:
Quote:
I made some tweaks to this page a couple weeks ago, mainly adding a few sorting options, and it seems that after I made the page live, it results in the db slowing down until it crashes with too many connections. |
That is kind of intensive, but it's not terrible. Unless you've got hundreds or thousands of people accessing the page at once, it shouldn't be a problem.
What you might be having a problem with is that you open a connection to the database, but you don't close it. Are you using vBulletin's database functions or are these your own? |
Maybe you can pull it once a day (via vb cron) and store it in the vb cache?
|
Why put them to the vb cache(you mean datastore or?) when they are just needed on one site?
Caching idee is good, but i wouldn't put them to the datastore |
The cron job idea is interesting.
--------------- Added [DATE]1237771673[/DATE] at [TIME]1237771673[/TIME] --------------- Quote:
|
A thought occurred to me, are there search spiders on your board? Because if they're on that page, they could be the ones killing your site. Turn off the visibility to unregistered/guest users.
|
Could you show us the queries?
|
Sure, here is where I think there could be issues:
Code:
/////// Get total user count ////// --------------- Added [DATE]1237902053[/DATE] at [TIME]1237902053[/TIME] --------------- Did you need more info than what I posted? |
All times are GMT. The time now is 03:18 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:
|