[1] SELECT @@SESSION.sql_mode (this query time : 0.000 s) (total SQL time : 0.000 s) (total time : 0.005 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.006 s) (num rows : 126 )
[3] SELECT data FROM g_sessions WHERE id = 'D8491cf9d4550864236ae18f06aac869dc13' ; (this query time : 0.000 s) (total SQL time : 0.001 s) (total time : 0.007 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.007 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.010 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.011 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.011 s)
(num rows : 1 )
[8] SELECT * FROM g_user_infos WHERE user_id = 2 ; (this query time : 0.000 s) (total SQL time : 0.004 s) (total time : 0.012 s) (num rows : 1 )
[0.016 s, 8 queries] : start initialize_calendar
[9]
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 '2016-01-01' AND '2016-12-31 23:59:59' AND WEEKDAY(date_creation)=2
ORDER BY date_creation DESC, date_creation DESC, file ASC, id ASC
(this query time : 0.002 s)
(total SQL time : 0.005 s)
(total time : 0.018 s)
(num rows : 78 )
[0.018 s, 9 queries] : end initialize_calendar
[10] UPDATE g_images SET hit = hit+1, lastmodified = lastmodified WHERE id = 4039 ; (this query time : 0.004 s) (total SQL time : 0.009 s) (total time : 0.022 s) (affected rows : 1 )
[11]
SELECT id,uppercats,commentable,visible,status,global_rank
FROM g_image_category
INNER JOIN g_categories ON category_id = id
WHERE image_id = 4039
AND (id NOT IN (878,294,266,321,272,273,822,823,824,825,826,182,212))
;
(this query time : 0.001 s)
(total SQL time : 0.010 s)
(total time : 0.023 s)
(num rows : 1 )
[12] SELECT * FROM g_images WHERE id IN (4039,4040,30690) ; (this query time : 0.001 s) (total SQL time : 0.010 s) (total time : 0.024 s) (num rows : 3 )
[13]
SELECT t.*, count(*) AS counter
FROM g_image_tag
INNER JOIN g_tags t ON tag_id = id
WHERE image_id IN (4039)
GROUP BY t.id
ORDER BY NULL
(this query time : 0.001 s)
(total SQL time : 0.011 s)
(total time : 0.028 s)
(num rows : 11 )
[14] SELECT id, name, permalink FROM g_categories WHERE id IN (122,131) (this query time : 0.001 s) (total SQL time : 0.012 s) (total time : 0.029 s) (num rows : 2 )
[15]
SELECT
COUNT(*) AS nb_comments
FROM g_comments
WHERE image_id = 4039 AND validated = 'true'
;
(this query time : 0.000 s)
(total SQL time : 0.012 s)
(total time : 0.032 s)
(num rows : 1 )
[16]
SELECT
id,
file,
representative_ext,
name,
comment,
width,
height,
date_creation,
path,
rotation
FROM g_images
WHERE id IN (30690,7663,30866,5013,5014,5011,5012,5009,5010,5015,5016,5019,4770,5018,4772,5023,5024,5021,5022,30674,5002,4999,5000,4989,4528,4529,4530,4355,4265,4272,4271,4270,4269,4268,4267,4266,4264,4263,4262,4261,4260,4552,4551,4553,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206,30660,30849,4145,4169,4168,4228,4167,4110,4113,4114,4112,4111,4038,4040,4039)
ORDER BY FIELD(id, 30690,7663,30866,5013,5014,5011,5012,5009,5010,5015,5016,5019,4770,5018,4772,5023,5024,5021,5022,30674,5002,4999,5000,4989,4528,4529,4530,4355,4265,4272,4271,4270,4269,4268,4267,4266,4264,4263,4262,4261,4260,4552,4551,4553,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206,30660,30849,4145,4169,4168,4228,4167,4110,4113,4114,4112,4111,4038,4040,4039)
;
(this query time : 0.001 s)
(total SQL time : 0.014 s)
(total time : 0.034 s)
(num rows : 78 )
[17] SELECT param, value FROM g_config WHERE param = "send_piwigo_infos_last_notice" ; (this query time : 0.001 s) (total SQL time : 0.014 s) (total time : 0.069 s) (num rows : 1 )