vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can this be done without huge amount of queries (https://vborg.vbsupport.ru/showthread.php?t=178766)

aceofspades 05-10-2008 03:04 PM

Can this be done without huge amount of queries
 
Is it possible to gather lots of information about what has recently happened on the forum without using a query each time?

For example:

Recent Posts
Recent logins
Birthdays
Recent PM's
Recent friend adds

etc

Am i right to be looking for a query alternative or is it actually the best way of getting this information? Im trying to save server load and speed up loading times.

Thank you :)

James

MoT3rror 05-10-2008 05:15 PM

You can try to use the vBulletin datamanager to cache the info but then the data could not be as accurate.
https://vborg.vbsupport.ru/showthrea...ht=datamanager

MagnetiCat 05-10-2008 07:37 PM

Quote:

Originally Posted by MoT3rror (Post 1515119)
You can try to use the vBulletin datamanager to cache the info but then the data could not be as accurate.
https://vborg.vbsupport.ru/showthrea...ht=datamanager

Yeah, the only way to go. Even if you run a cronjob very often - every minute - you are still getting much less queries than what you would get in a website with dozens of visitors at the same time.

MoT3rror 05-10-2008 08:54 PM

Well you don't have to do a cron job. It might just be best to update the datamanager every time the data is updated.

MagnetiCat 05-11-2008 02:57 AM

In my opinion, still not a good choice in a popular forum. In that case, that would run updates still too often; at least in forums where there are 200+ users working at the same time. Of course, it depends on query complexity and forum traffic. If you have little traffic, an update at each change would be more than enough.

aceofspades 05-12-2008 11:47 AM

I appreciate the help. Initially there wont be many users but i am hoping to get +200 at once in the future. Does anyone know how facebook does it?

They must suffer from a similar problem, and yet they are still able to update the forum with thousands of users online at once?

MoT3rror 05-12-2008 04:01 PM

Quote:

Originally Posted by aceofspades (Post 1517121)
I appreciate the help. Initially there wont be many users but i am hoping to get +200 at once in the future. Does anyone know how facebook does it?

They must suffer from a similar problem, and yet they are still able to update the forum with thousands of users online at once?

Well they probably have more then 25 servers and probably a ton of memory cache servers powering their system.

Dismounted 05-13-2008 07:18 AM

25 servers only? You've got to be kidding me. It's more like an entire datacentre with dedicated gigabit links.

MoT3rror 05-13-2008 01:02 PM

Quote:

Originally Posted by Dismounted (Post 1517985)
25 servers only? You've got to be kidding me. It's more like an entire datacentre with dedicated gigabit links.

It was just a guess, I just know it would take a ton of servers:rolleyes:


All times are GMT. The time now is 07:46 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
  • Page Generation 0.00999 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete