[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 = 'D8495675e0270552f9ebe9d4210a181d9d47' ; (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.001 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.006 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.001 s)
(total SQL time : 0.003 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 )
[9] SELECT * FROM g_tags WHERE id IN (25567) (this query time : 0.000 s) (total SQL time : 0.004 s) (total time : 0.011 s) (num rows : 1 )
[9]
SELECT id
FROM g_images i
INNER JOIN g_image_category ic ON id=ic.image_id
INNER JOIN g_image_tag it ON id=it.image_id
WHERE tag_id IN (25567)
AND (category_id NOT IN (878,294,266,321,272,273,822,823,824,825,826,182,212) AND level<=0)
GROUP BY id
ORDER BY hit ASC,date_creation DESC, file ASC, id ASC
(this query time : 0.001 s)
(total SQL time : 0.004 s)
(total time : 0.011 s)
(num rows : 1 )
[0.011 s, 9 queries] : start initialize_calendar
[10] SELECT DISTINCT(WEEK(date_creation, 5)+1) as period, COUNT(DISTINCT id) as nb_images FROM g_images WHERE id IN (31379) AND date_creation BETWEEN '2025-01-01' AND '2025-12-31 23:59:59' GROUP BY period; (this query time : 0.000 s) (total SQL time : 0.004 s) (total time : 0.012 s) (num rows : 1 )
[11] SELECT DISTINCT(WEEKDAY(date_creation)) as period, COUNT(DISTINCT id) as nb_images FROM g_images WHERE id IN (31379) AND date_creation BETWEEN '2025-01-01' AND '2025-12-31 23:59:59' AND WEEK(date_creation, 5)+1=11 GROUP BY period; (this query time : 0.000 s) (total SQL time : 0.004 s) (total time : 0.012 s) (num rows : 1 )
[12]
SELECT CONCAT_WS('-',YEAR(date_creation),WEEK(date_creation, 5)+1) AS period FROM g_images
WHERE id IN (31379)
AND date_creation IS NOT NULL
GROUP BY period
(this query time : 0.000 s)
(total SQL time : 0.005 s)
(total time : 0.012 s)
(num rows : 1 )
[13] SELECT DISTINCT id FROM g_images WHERE id IN (31379) AND date_creation BETWEEN '2025-01-01' AND '2025-12-31 23:59:59' AND WEEK(date_creation, 5)+1=11 ORDER BY hit ASC,date_creation DESC, file ASC, id ASC (this query time : 0.000 s) (total SQL time : 0.005 s) (total time : 0.013 s) (num rows : 1 )
[0.013 s, 13 queries] : end initialize_calendar
[14] 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.002 s) (total SQL time : 0.008 s) (total time : 0.015 s) (num rows : 374 )
[15] SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY) (this query time : 0.000 s) (total SQL time : 0.008 s) (total time : 0.016 s) (num rows : 1 )
[16]
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 (31379)
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.008 s)
(total time : 0.018 s)
(num rows : 2 )
[17]
SELECT
id,
name,
permalink,
id_uppercat,
uppercats,
global_rank
FROM g_categories
WHERE id IN (103,270,276,585,871,875)
;
(this query time : 0.000 s)
(total SQL time : 0.009 s)
(total time : 0.018 s)
(num rows : 6 )
[18] SELECT * FROM g_tags (this query time : 0.009 s) (total SQL time : 0.018 s) (total time : 0.029 s) (num rows : 17957 )
[19]
SELECT t.*, count(*) AS counter
FROM g_image_tag
INNER JOIN g_tags t ON tag_id = id
WHERE image_id IN (31379)
AND tag_id NOT IN (25567)
GROUP BY t.id
ORDER BY counter DESC
LIMIT 3
(this query time : 0.001 s)
(total SQL time : 0.019 s)
(total time : 0.102 s)
(num rows : 3 )
[20] SELECT * FROM g_images WHERE id IN (31379) ; (this query time : 0.001 s) (total SQL time : 0.019 s) (total time : 0.103 s) (num rows : 1 )
[0.104 s, 20 queries] : end include/category_default.inc.php
[21]
SELECT
id,
file,
representative_ext,
name,
comment,
width,
height,
date_creation,
path,
rotation
FROM g_images
WHERE id IN (31379)
ORDER BY FIELD(id, 31379)
;
(this query time : 0.000 s)
(total SQL time : 0.020 s)
(total time : 0.105 s)
(num rows : 1 )
[22] SELECT param, value FROM g_config WHERE param = "send_piwigo_infos_last_notice" ; (this query time : 0.000 s) (total SQL time : 0.020 s) (total time : 0.108 s) (num rows : 1 )