vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   closure table when moving threads (https://vborg.vbsupport.ru/showthread.php?t=323582)

ifuyivara 10-05-2016 06:17 PM

closure table when moving threads
 
I recently upgraded to vbulletin 5 from vbulletin 3.8

Our forum has literally millions of threads/posts. And now every time we try to moderate a thread (say, move it to a different channel/forum) it times out. I identified the problem being in the closure table (it has about 54 million rows) and the following query takes forever:

DELETE cl3 FROM closure AS cl
INNER JOIN closure AS cl2 ON cl2.parent = cl.child AND cl2.depth > 0
INNER JOIN closure AS cl3 ON cl3.child = cl2.child AND cl3.parent = cl.parent
WHERE cl.child IN (873064) AND cl.depth > 0

Any suggestions on how to go about fixing this problem? Thank you!

mito22 02-01-2018 08:49 PM

Hi.... I've got the same problem.... Have you found a solution?

Dave 02-01-2018 09:12 PM

Did you update to the most recent version of vBulletin 5 yet?

mito22 02-02-2018 09:40 AM

Quote:

Originally Posted by Dave (Post 2592586)
Did you update to the most recent version of vBulletin 5 yet?

Sure... we made 2 days ago UPGRADE with VB service..... with Joe...


All times are GMT. The time now is 11:39 PM.

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.01726 seconds
  • Memory Usage 1,711KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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