sхс
Легенда
Сегодня не отработали несколько крон задач.
Проблема решилась добавлением
DB()->query('SET SQL_BIG_SELECTS=1');
перед проблемным запросом
Кто скажет почему так случилось? Связано ли это с тем, что количество записей в базе перевалило за миллион?
в логах
Проблема решилась добавлением
DB()->query('SET SQL_BIG_SELECTS=1');
перед проблемным запросом
Кто скажет почему так случилось? Связано ли это с тем, что количество записей в базе перевалило за миллион?
в логах
Код:
[14-Dec-2016 15:28:10 Europe/Moscow] PHP Fatal error: DB Error [includes/functions_admin.php(108)] in /var/www/zns/data/www/xxx.ru/includes/db/mysql.php on line 802
Код:
INSERT INTO tmp_sync_topics SELECT t.topic_id, COUNT(p.post_id) AS total_posts, MIN(p.post_id) AS topic_first_post_id, MAX(p.post_id) AS topic_last_post_id, MAX(p.post_time) AS topic_last_post_time, IF(MAX(a.attach_id), 1, 0) AS topic_attachment FROM bb_topics t LEFT JOIN bb_posts p ON(p.topic_id = t.topic_id) LEFT JOIN bb_attachments a ON(a.post_id = p.post_id) WHERE t.topic_status != 2 GROUP BY t.topic_id
Source : includes/functions_admin.php(108) :: db1.xxxtracker
IP : 96.216.122.187
Date : 2016-12-14 15:28:08
Agent : Wget/1.12 (linux-gnu)
Req_URI : /cron.php
Referer :
Method : GET
PID : 09454
Request : Array
(
)______________________________________________________________________________
#001104 The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
INSERT INTO tmp_sync_topics SELECT t.topic_id, COUNT(p.post_id) AS total_posts, MIN(p.post_id) AS topic_first_post_id, MAX(p.post_id) AS topic_last_post_id, MAX(p.post_time) AS topic_last_post_time, IF(MAX(a.attach_id), 1, 0) AS topic_attachment FROM bb_topics t LEFT JOIN bb_posts p ON(p.topic_id = t.topic_id) LEFT JOIN bb_attachments a ON(a.post_id = p.post_id) WHERE t.topic_status != 2 GROUP BY t.topic_id
Source : includes/functions_admin.php(108) :: db1.xxxtracker
IP : 46.163.16.161
Date : 2016-12-14 15:28:10
Agent : Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Req_URI : /admin/admin_cron.php?mode=run&id=4
Referer :
Method : GET
PID : 10079
Request : Array
(
[mode] => run
[id] => 4
)______________________________________________________________________________
Последнее редактирование: