diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-03-19 17:11:30 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-03-19 17:11:30 +0530 |
commit | c551b46115c889ac955649fe5513fb1d39d9979e (patch) | |
tree | 1415f464b8d58b0057c86253a7c4f940df8c1130 /phpBB/develop | |
parent | 81eeafbb8dfb6f3511d689169a2ccc46f3d07704 (diff) | |
download | forums-c551b46115c889ac955649fe5513fb1d39d9979e.tar forums-c551b46115c889ac955649fe5513fb1d39d9979e.tar.gz forums-c551b46115c889ac955649fe5513fb1d39d9979e.tar.bz2 forums-c551b46115c889ac955649fe5513fb1d39d9979e.tar.xz forums-c551b46115c889ac955649fe5513fb1d39d9979e.zip |
[ticket/10691] Fixed the speed of creating search index
$time is now initialized after each batch iteration.
Speed for each batch iteration of creating search index is fixed.
PHPBB3-10691
Diffstat (limited to 'phpBB/develop')
-rw-r--r-- | phpBB/develop/create_search_index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/develop/create_search_index.php b/phpBB/develop/create_search_index.php index 28001035f6..c1a7125d61 100644 --- a/phpBB/develop/create_search_index.php +++ b/phpBB/develop/create_search_index.php @@ -36,7 +36,6 @@ $search_errors = array(); $search = new $class_name($search_errors); $batch_size = isset($argv[2]) ? $argv[2] : 2000; -$time = time(); if (method_exists($search, 'create_index')) { @@ -68,6 +67,7 @@ else while ($post_counter <= $max_post_id) { $row_count = 0; + $time = time(); printf("Processing posts with %d <= post_id <= %d\n", $post_counter + 1, |