View Single Post
  #1  
Old 02-03-2010, 10:18 AM
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SillyAlien View Post
TosaInu, how did you make out with the re-indexing?
Hello SillyAlien,

It's not completed yet. I first used the default setting of 250 items per batch, and some 600,000 posts were indexed within a few hours. I left it running during the night and it got at some 700,000. Probably stuck. I let it run for the rest of the day (12+ hours) and it was still there. So, the PHP script probably timed out. The forum was running all the time and no glitches were reported from any member. I'm sure it would be said if there was any.

I launched it again at 50 per batch, and the script hung again, followed by a crash of the browser. There are some 720,000 items in the searchlog now. That's far from completed.

The problem is that several single posts on our forum are multi page essays. A few years ago, the PHP limit was set so that one of them could be just posted at a time without crashing PHP. The PHP settings are increased a few notches now, but it won't be able to process 50 at the same time. Setting the batch to 1 at a time, and assuming 1 second for a batch cyclus, it will take 12 days to hit the first million. So, I'll have to tweak to get it done.

There are 700,000 records now and I searched for a word there: results come up within 2 seconds, so performance isn't bad (for us).

I would say it's a decent, good or even very good implementation. The built script is a bottleneck when you have a large site and big items.

I'm guessing memory and timeouts is the problem for me. Would it be possible to run the build script from the commandline? Will that prevent issues?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00995 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete