vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How Do I Mass Prune Threads using Command Line? (https://vborg.vbsupport.ru/showthread.php?t=278838)

Abhik 02-19-2012 06:45 PM

How Do I Mass Prune Threads using Command Line?
 
Hello,
Is there any way to mass prune threads from selected forums from command line?
I have near 5000K (5000000) threads to prune, but Admin CP option gives me memory outage error though I have 1GB memory allocated to PHP.

Thanks

Kraxell 02-19-2012 08:16 PM

Ouch,.... Do you have try to delete the threads via SQL? Think this is better for your memory.

Abhik 02-20-2012 02:03 AM

Quote:

Originally Posted by Kraxell (Post 2301324)
Ouch,.... Do you have try to delete the threads via SQL? Think this is better for your memory.

What should be the query?

Abhik 02-22-2012 03:08 PM

Well, if I do a DELETE from threads, it'll delete all the thread, but what about posts in those threads? Won't they left on database? :(

Kraxell 02-22-2012 04:57 PM

Hello,

try this one:
https://vborg.vbsupport.ru/showthread.php?t=275314

So make it step by step:
Delete all for 4 week
than
all from 8 week
and so on.

Abhik 02-26-2012 09:26 AM

Thanks.. :)
But I have managed to do it using the default prune tool.
What I did is decreased the memory limit in php config and used 8GB memory using ini_set for thread.php file in admin cp.
Run the tool and waited for over 10 Hours.

Kraxell 02-26-2012 09:56 AM

Heavy ^^

zylstra 10-05-2012 10:17 PM

Quote:

Originally Posted by Abhik (Post 2303501)
Thanks.. :)
But I have managed to do it using the default prune tool.
What I did is decreased the memory limit in php config and used 8GB memory using ini_set for thread.php file in admin cp.
Run the tool and waited for over 10 Hours.

Abhik, can you explain this in depth a little more? I need to delete 3/4 of my users, but when I try to delete more than a couple 10s of thousands my browser hangs.


All times are GMT. The time now is 11:06 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.01826 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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