mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10691] Fixed the speed of creating search index
This commit is contained in:
commit
cfd0afe4ea
@ -35,7 +35,6 @@ $search_errors = array();
|
|||||||
$search = new $class_name($search_errors);
|
$search = new $class_name($search_errors);
|
||||||
|
|
||||||
$batch_size = isset($argv[2]) ? $argv[2] : 2000;
|
$batch_size = isset($argv[2]) ? $argv[2] : 2000;
|
||||||
$time = time();
|
|
||||||
|
|
||||||
if (method_exists($search, 'create_index'))
|
if (method_exists($search, 'create_index'))
|
||||||
{
|
{
|
||||||
@ -67,6 +66,7 @@ else
|
|||||||
while ($post_counter <= $max_post_id)
|
while ($post_counter <= $max_post_id)
|
||||||
{
|
{
|
||||||
$row_count = 0;
|
$row_count = 0;
|
||||||
|
$time = time();
|
||||||
|
|
||||||
printf("Processing posts with %d <= post_id <= %d\n",
|
printf("Processing posts with %d <= post_id <= %d\n",
|
||||||
$post_counter + 1,
|
$post_counter + 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user