Permalink
Browse files

Limit records to be indexed per run

  • Loading branch information...
protich committed Jul 11, 2016
1 parent 7267531 commit 9174bab2465da43ccd372253e38fe89f7677eefc
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/class.search.php
View
@@ -478,7 +478,7 @@ function IndexOldStuff() {
LEFT JOIN `".TABLE_PREFIX."_search` A2 ON (A1.`id` = A2.`object_id` AND A2.`object_type`='H')
WHERE A2.`object_id` IS NULL AND (A1.poster <> 'SYSTEM')
AND (LENGTH(A1.`title`) + LENGTH(A1.`body`) > 0)
ORDER BY A1.`id` DESC";
ORDER BY A1.`id` DESC LIMIT 500";
if (!($res = db_query_unbuffered($sql, $auto_create)))
return false;
@@ -498,7 +498,7 @@ function IndexOldStuff() {
$sql = "SELECT A1.`ticket_id` FROM `".TICKET_TABLE."` A1
LEFT JOIN `".TABLE_PREFIX."_search` A2 ON (A1.`ticket_id` = A2.`object_id` AND A2.`object_type`='T')
WHERE A2.`object_id` IS NULL
ORDER BY A1.`ticket_id` DESC";
ORDER BY A1.`ticket_id` DESC LIMIT 300";
if (!($res = db_query_unbuffered($sql, $auto_create)))
return false;

0 comments on commit 9174bab

Please sign in to comment.