mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/16940] Optimize phpBB Native Search
- Use `ORDER BY post_id ASC` for batch posts. PHPBB3-16940
This commit is contained in:
parent
ff6f7c4186
commit
6389a57633
1 changed files with 3 additions and 2 deletions
|
@ -453,7 +453,8 @@ abstract class base implements search_backend_interface
|
|||
{
|
||||
$sql = 'SELECT post_id, post_subject, post_text, poster_id, forum_id
|
||||
FROM ' . POSTS_TABLE . '
|
||||
WHERE post_id > ' . $post_id;
|
||||
WHERE post_id > ' . (int) $post_id . '
|
||||
ORDER BY post_id ASC';
|
||||
$result = $this->db->sql_query_limit($sql, self::BATCH_SIZE);
|
||||
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
|
|
Loading…
Add table
Reference in a new issue