vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Slow queries (https://vborg.vbsupport.ru/showthread.php?t=178442)

tscbh 05-11-2008 05:26 PM

First of all, I don't know what is living avatar. I am not a forum type person. I only use forum general discussion and user database.

I found out that slow queries only appear when I browse the member list. The first few page of the member list is OK, but as soon as I reach page 2.5K+ slow queries appear. So how can I fix this problem.

On the memberlist, the following detail is shown:
- username/posts/reputaion/avatar

Most of my queries are very simple and index probably. It's usually took less than 50ms. Above that would worry me.

5 seconds for a single query is way too much.

Is there anything I can do to reduce this to an accepted level?

tscbh

ssslippy 05-11-2008 10:30 PM

Are you displaying avatars on your memberlist page. If im correct these pages arnt in your cache.

tscbh 05-11-2008 10:37 PM

Yes avatar is displayed on the memberlist. I don't know if it's cached. How do I cached the memberlist?

ssslippy 05-12-2008 01:08 AM

no no, usually the system drops files that arnt access often out of the cache. Nothing you can do about that, my best advice is to disable avatars in the memberlist.

tscbh 05-12-2008 04:02 AM

After removing everything from member list, nothing seemed to change.

I add a condition in member list, only show member > x post count. Then I index post count. I have only about 60 pages left. The longest queries which is the last page is 0.2 seconds. I am feeling much better now. The majority of member is remove from the list :).

There is nothing I can do about it.

vBulletin.org suffer the same problem too:
Code:

Showing results 17576 to 17600 of 17601           
            Search took 3.01 seconds.

If there are 80,000+ members, the result should be worse.

Anyway, thanks for all the support guys.

mainframe 12-28-2008 07:45 AM

Same problem here with 471.000 members...
Sometimes the query takes 9 seconds and I also found that the only slow queries generated by vBulletin are in the memberlist..

mindfrost82 03-03-2010 02:33 PM

OMG, this thread saved me. I've been trying to troubleshoot an issue for over a month now and I never thought it was MySQL, much less this issue with avatars on the memberlist.

We have almost 400,000 members and we had avatars showing on the memberlist.

So, I disabled avatars on that page, and also made it so that only members with >1 post show up and we haven't had a slow query since then.


All times are GMT. The time now is 02:48 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.01035 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete