vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Manually added a bunch of posts, cant find how to reset count on index page (https://vborg.vbsupport.ru/showthread.php?t=306414)

pattycake 12-29-2013 06:34 PM

Manually added a bunch of posts, cant find how to reset count on index page
 
I really hate asking... I should be able to find this but I haven't been able to.

I manually added a boatload of missing posts - which "counter" do I rebuild to get the post count at the bottom of the index page to reflect the correct number of posts?

Zachery 12-29-2013 09:03 PM

How did you manually add them?

pattycake 12-29-2013 10:17 PM

I was converting from another forum software... I did not use Impex, it could not handle the size of my database... I wrote my own conversion program. Everything is there, all of the posts are there, I just need to update the count on the index page.

RichieBoy67 12-29-2013 10:58 PM

If you want your posts to be recounted you use the Post count update tool in the maintenance section. Be sure to clear your cache in the maintenance section as well.

Are you saying you want a fake count number?

Zachery 12-29-2013 10:59 PM

impex could have handled the size of your database :)

Anyway, you'd still likely need to follow the after the import rules.

Rebuild the thread, and forum counters.

RichieBoy67 12-29-2013 11:03 PM

Quote:

Originally Posted by Zachery (Post 2471225)
impex could have handled the size of your database :)

Anyway, you'd still likely need to follow the after the import rules.

Rebuild the thread, and forum counters.

True, I have imported sites over 10 gigs before using Impex. It just takes a very long time and you have to be sure it doesn't get hung up by packet size settings, etc but it works fine.

Patty - You should generally update all the counters after running an import. At least I always do.:)

pattycake 12-29-2013 11:43 PM

Quote:

Originally Posted by Zachery (Post 2471225)
impex could have handled the size of your database :)

Anyway, you'd still likely need to follow the after the import rules.

Rebuild the thread, and forum counters.

I tried impex several times... 5 million posts, and gave up after waiting as long as 5 days just for the posts and, it wasn't even halfway thru the posts.

140,000 users took 48 hours. It flat out died so many times I just said the heck with it and wrote my own in C.

140,000 users added in 11 minutes, 5 million posts in 2 1/2 hours.

--------------- Added [DATE]1388364349[/DATE] at [TIME]1388364349[/TIME] ---------------

Quote:

Originally Posted by RichieBoy67 (Post 2471224)
If you want your posts to be recounted you use the Post count update tool in the maintenance section. Be sure to clear your cache in the maintenance section as well.

Are you saying you want a fake count number?

no, I don't want to use a fake number - I have over 5 million posts. Do you know where that value is stored (in what table)?

If I can just edit that number, I won't have to wait for hours for the 140,000 threads and 200 forums to process (assuming I have to do the thread and forum counters as mentioned below)

--------------- Added [DATE]1388364459[/DATE] at [TIME]1388364459[/TIME] ---------------

Quote:

Originally Posted by RichieBoy67 (Post 2471224)
If you want your posts to be recounted you use the Post count update tool in the maintenance section. Be sure to clear your cache in the maintenance section as well.

Are you saying you want a fake count number?

tried that... it updated the post counts for all members (4 hours runtime), but not that total at the bottom of the index page

Zachery 12-30-2013 12:02 AM

You also ran the rebuild forum counter too, right?

The import going slowly sounds like a MySQL tuning issue, more than anything else.

RichieBoy67 12-30-2013 12:12 AM

5 million posts is a lot. The only time I ever had issues with the posts importing was due to very, very large posts and threads holding things up due to the packet size which I just needed to adjust.

If you updated the thread, posts and forum counters at the very least and cleared the cache it should work.

You wrote a program to import threads, posts, forums, etc? What forum script were you importing from? 11 minutes for 5 million posts seems very fast! On some of the larger forums I imported with Impex I ended up going to sleep and just let it run but that was mostly7 for attachments.

pattycake 12-30-2013 12:21 AM

Quote:

Originally Posted by Zachery (Post 2471241)
You also ran the rebuild forum counter too, right?

The import going slowly sounds like a MySQL tuning issue, more than anything else.

I tried the forum counter first, hoping it would do the trick because it was the fastest. No go... bummer. Then did the post count that took almost 5 hours, again no go. I have not tried the thread counter yet. What happens if i try it on a live site?

--------------- Added [DATE]1388366797[/DATE] at [TIME]1388366797[/TIME] ---------------

Quote:

Originally Posted by RichieBoy67 (Post 2471242)
5 million posts is a lot. The only time I ever had issues with the posts importing was due to very, very large posts and threads holding things up due to the packet size which I just needed to adjust.

If you updated the thread, posts and forum counters at the very least and cleared the cache it should work.

You wrote a program to import threads, posts, forums, etc? What forum script were you importing from? 11 minutes for 5 million posts seems very fast! On some of the larger forums I imported with Impex I ended up going to sleep and just let it run but that was mostly7 for attachments.

>You wrote a program to import threads, posts, forums, etc? What forum script were you importing from?

Forum was a very very old and heavily modified version of Invision Board (v 1.2)

Yep... wrote my own program. The only thing that remains to be converted is the PM's... have not figured out the table yet... what the heck is:
a:1:{s:2:"cc";a:1:{i:1642;s:9:"RacerX317";}}
a:1:{i:32;s:13:"bullardracing";}

:)


All times are GMT. The time now is 10:30 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.01453 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)bbcode_quote_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
  • (10)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