[1] SELECT @@SESSION.sql_mode (this query time : 0.000 s) (total SQL time : 0.000 s) (total time : 0.002 s) (num rows : 1 )
[2] SELECT param, value FROM g_config ; (this query time : 0.001 s) (total SQL time : 0.001 s) (total time : 0.003 s) (num rows : 126 )
[3] SELECT data FROM g_sessions WHERE id = 'D849dc9a10f1e05f5e42ec863dddce0e20ff' ; (this query time : 0.000 s) (total SQL time : 0.001 s) (total time : 0.004 s) (num rows : 1 )
[4] SELECT * FROM g_plugins WHERE state='active' (this query time : 0.000 s) (total SQL time : 0.002 s) (total time : 0.004 s) (num rows : 9 )
[5]
SELECT
image_id,
date_available,
NOW() AS dbnow
FROM g_lounge
JOIN g_images ON image_id = id
ORDER BY image_id ASC
LIMIT 1
;
(this query time : 0.000 s)
(total SQL time : 0.002 s)
(total time : 0.006 s)
(num rows : 0 )
[6]
SELECT id AS id
, username AS username
, password AS password
, mail_address AS email
FROM g_users
WHERE id = '2'
(this query time : 0.000 s)
(total SQL time : 0.002 s)
(total time : 0.007 s)
(num rows : 1 )
[7]
SELECT
ui.*,
uc.*,
t.name AS theme_name
FROM g_user_infos AS ui
LEFT JOIN g_user_cache AS uc ON ui.user_id = uc.user_id
LEFT JOIN g_themes AS t ON t.id = ui.theme
WHERE ui.user_id = 2
;
(this query time : 0.000 s)
(total SQL time : 0.002 s)
(total time : 0.007 s)
(num rows : 1 )
[8] SELECT * FROM g_user_infos WHERE user_id = 2 ; (this query time : 0.000 s) (total SQL time : 0.003 s) (total time : 0.007 s) (num rows : 1 )
[0.011 s, 8 queries] : start initialize_calendar
[9]
SELECT CONCAT_WS('-',YEAR(date_creation),MONTH(date_creation),DAYOFMONTH(date_creation)) AS period FROM g_images
INNER JOIN g_image_category ON id = image_id
WHERE (category_id NOT IN (878,294,266,321,272,273,822,823,824,825,826,182,212) AND level<=0)
AND date_creation IS NOT NULL
GROUP BY period
(this query time : 0.117 s)
(total SQL time : 0.120 s)
(total time : 0.128 s)
(num rows : 3219 )
[10]
SELECT DISTINCT id FROM g_images
INNER JOIN g_image_category ON id = image_id
WHERE (category_id NOT IN (878,294,266,321,272,273,822,823,824,825,826,182,212) AND level<=0)
AND date_creation BETWEEN '2019-08-03' AND '2019-08-03 23:59:59'
ORDER BY date_creation ASC, date_creation DESC, file ASC, id ASC
(this query time : 0.001 s)
(total SQL time : 0.121 s)
(total time : 0.136 s)
(num rows : 10 )
[0.136 s, 10 queries] : end initialize_calendar
[11] SELECT id, name, permalink, nb_images, global_rank, date_last, max_date_last, count_images, count_categories FROM g_categories INNER JOIN g_user_cache_categories ON id = cat_id and user_id = 2 WHERE 1 = 1 ; (this query time : 0.003 s) (total SQL time : 0.123 s) (total time : 0.139 s) (num rows : 374 )
[12] SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY) (this query time : 0.000 s) (total SQL time : 0.124 s) (total time : 0.139 s) (num rows : 1 )
[13]
SELECT
c.id,
c.uppercats,
count(*) AS counter
FROM g_image_category
INNER JOIN g_categories c ON category_id = id
WHERE image_id IN (9661,9662,9660,9659,9658,9657,9655,9656,9654,9653)
AND (category_id NOT IN (878,294,266,321,272,273,822,823,824,825,826,182,212))
GROUP BY c.id
ORDER BY counter DESC
LIMIT 20
(this query time : 0.001 s)
(total SQL time : 0.125 s)
(total time : 0.142 s)
(num rows : 3 )
[14]
SELECT
id,
name,
permalink,
id_uppercat,
uppercats,
global_rank
FROM g_categories
WHERE id IN (152,169,323,585,753,761,100,101,256,257)
;
(this query time : 0.000 s)
(total SQL time : 0.125 s)
(total time : 0.143 s)
(num rows : 10 )
[15] SELECT * FROM g_tags (this query time : 0.009 s) (total SQL time : 0.134 s) (total time : 0.153 s) (num rows : 17957 )
[16] SELECT * FROM g_images WHERE id IN (9661,9662,9660,9659,9658,9657,9655,9656,9654,9653) ; (this query time : 0.001 s) (total SQL time : 0.135 s) (total time : 0.217 s) (num rows : 10 )
[0.219 s, 16 queries] : end include/category_default.inc.php
[17]
SELECT t.*, count(*) AS counter
FROM g_image_tag
INNER JOIN g_tags t ON tag_id = id
WHERE image_id IN (9661,9662,9660,9659,9658,9657,9655,9656,9654,9653)
GROUP BY t.id
ORDER BY counter DESC
LIMIT 2
(this query time : 0.001 s)
(total SQL time : 0.136 s)
(total time : 0.220 s)
(num rows : 2 )
[18]
SELECT
id,
file,
representative_ext,
name,
comment,
width,
height,
date_creation,
path,
rotation
FROM g_images
WHERE id IN (9661,9662,9660,9659,9658,9657,9655,9656,9654,9653)
ORDER BY FIELD(id, 9661,9662,9660,9659,9658,9657,9655,9656,9654,9653)
;
(this query time : 0.001 s)
(total SQL time : 0.137 s)
(total time : 0.222 s)
(num rows : 10 )
[19] SELECT param, value FROM g_config WHERE param = "send_piwigo_infos_last_notice" ; (this query time : 0.001 s) (total SQL time : 0.138 s) (total time : 0.228 s) (num rows : 1 )