[1]
SELECT @@SESSION.sql_mode
(this query time : 0.000 s)
(total SQL time : 0.000 s)
(total time : 0.020 s)
(num rows : 1 )
[2]
SET SESSION sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
(this query time : 0.000 s)
(total SQL time : 0.000 s)
(total time : 0.020 s)
[3]
SELECT param, value
FROM piwigo_config
;
(this query time : 0.001 s)
(total SQL time : 0.001 s)
(total time : 0.020 s)
(num rows : 106 )
[4]
SELECT data
FROM piwigo_sessions
WHERE id = 'C0A8s43dukn6pr4pp5rb6ee037irdg'
;
(this query time : 0.003 s)
(total SQL time : 0.004 s)
(total time : 0.024 s)
(num rows : 0 )
[5]
SELECT * FROM piwigo_plugins
WHERE state='active'
(this query time : 0.000 s)
(total SQL time : 0.004 s)
(total time : 0.024 s)
(num rows : 8 )
[6]
SELECT
image_id,
date_available,
NOW() AS dbnow
FROM piwigo_lounge
JOIN piwigo_images ON image_id = id
ORDER BY image_id ASC
LIMIT 1
;
(this query time : 0.001 s)
(total SQL time : 0.005 s)
(total time : 0.031 s)
(num rows : 0 )
[7]
SELECT id AS id
, username AS username
, password AS password
, mail_address AS email
FROM piwigo_users
WHERE id = '2'
(this query time : 0.000 s)
(total SQL time : 0.005 s)
(total time : 0.032 s)
(num rows : 1 )
[8]
SELECT
ui.*,
uc.*,
t.name AS theme_name
FROM piwigo_user_infos AS ui
LEFT JOIN piwigo_user_cache AS uc ON ui.user_id = uc.user_id
LEFT JOIN piwigo_themes AS t ON t.id = ui.theme
WHERE ui.user_id = 2
;
(this query time : 0.000 s)
(total SQL time : 0.006 s)
(total time : 0.032 s)
(num rows : 1 )
[9]
SELECT *
FROM piwigo_user_infos
WHERE user_id = 2
;
(this query time : 0.000 s)
(total SQL time : 0.006 s)
(total time : 0.032 s)
(num rows : 1 )
[0.037 s, 9 queries] : start initialize_calendar
[10]
SELECT DISTINCT(YEAR(date_creation)) as period,
COUNT(DISTINCT id) as nb_images FROM piwigo_images
INNER JOIN piwigo_image_category ON id = image_id
WHERE (category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90)) AND date_creation IS NOT NULL
GROUP BY period;
(this query time : 0.005 s)
(total SQL time : 0.011 s)
(total time : 0.043 s)
(num rows : 5 )
[11]
SELECT DISTINCT id FROM piwigo_images
INNER JOIN piwigo_image_category ON id = image_id
WHERE (category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90))
AND date_creation IS NOT NULL
ORDER BY date_creation DESC, date_available DESC, file ASC, id ASC
(this query time : 0.007 s)
(total SQL time : 0.017 s)
(total time : 0.050 s)
(num rows : 633 )
[0.050 s, 11 queries] : end initialize_calendar
[12]
SELECT i.latitude, i.longitude,
IFNULL(i.name, '') AS `name`,
TRIM(LEADING '.' FROM IF(i.representative_ext IS NULL,
CONCAT(LEFT(i.path,CHAR_LENGTH(i.path)-1-CHAR_LENGTH(SUBSTRING_INDEX(i.path, '.', -1 ))), '-sq.', SUBSTRING_INDEX(i.path, '.', -1 )),
REPLACE(i.path, TRIM(TRAILING '.' FROM SUBSTRING_INDEX(i.path, '/', -1 )),
CONCAT('pwg_representative/',
CONCAT(
TRIM(TRAILING '.' FROM SUBSTRING_INDEX( SUBSTRING_INDEX(i.path, '/', -1 ) , '.', 1 )),
CONCAT('-sq.', i.representative_ext)
)
)
)
)) AS `pathurl`,
TRIM(TRAILING '/' FROM CONCAT( i.id, '/category/', IFNULL(ic.category_id, '') ) ) AS `imgurl`,
IFNULL(i.comment, '') AS `comment`,
IFNULL(i.author, '') AS `author`,
i.width
FROM piwigo_images AS i
INNER JOIN (piwigo_image_category AS ic ) ON i.id = ic.image_id
WHERE i.latitude IS NOT NULL AND i.longitude IS NOT NULL
AND (ic.category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90)) GROUP BY i.id;
(this query time : 0.014 s)
(total SQL time : 0.031 s)
(total time : 0.066 s)
(num rows : 630 )
[13]
SELECT i.path FROM piwigo_images AS i
INNER JOIN (piwigo_image_category AS ic ) ON i.id = ic.image_id
WHERE `path` LIKE '%.gpx'
AND (ic.category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90))
(this query time : 0.004 s)
(total SQL time : 0.035 s)
(total time : 0.073 s)
(num rows : 71 )
[14]
SELECT id, uppercats
FROM piwigo_categories
WHERE name LIKE "%%"
(this query time : 0.001 s)
(total SQL time : 0.036 s)
(total time : 0.095 s)
(num rows : 0 )
[15]
SELECT
id, name, permalink, nb_images, global_rank,
date_last, max_date_last, count_images, count_categories
FROM piwigo_categories INNER JOIN piwigo_user_cache_categories
ON id = cat_id and user_id = 2
WHERE
(id_uppercat is NULL)
;
(this query time : 0.000 s)
(total SQL time : 0.036 s)
(total time : 0.095 s)
(num rows : 1 )
[16]
SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY)
(this query time : 0.000 s)
(total SQL time : 0.036 s)
(total time : 0.096 s)
(num rows : 1 )
[17]
SELECT
c.id,
c.uppercats,
count(*) AS counter
FROM piwigo_image_category
INNER JOIN piwigo_categories c ON category_id = id
WHERE image_id IN (958,957,956,955,954,953,952,951,950,949,948,947,946,945,944,943,942,941,940,939,938,937,936,935,934,933,932,931,930,929,928,927,926,925,924,923,922,921,920,919,918,917,916,915,914,913,912,911,910,909,908,907,906,905,904,903,963,962,961,968,967,966,965,964,896,895,894,893,892,891,890,897,889,971,970,874,880,879,878,877,876,875,881,884,886,885,850,849,848,847,846,845,844,843,842,859,858,854,864,863,862,861,853,865,856,855,867,866,872,871,870,869,868,841,840,839,836,835,834,833,832,825,826,827,828,829,830,824,790,791,792,781,782,783,784,785,787,789,788,800,801,802,795,796,797,798,799,736,735,734,733,732,731,741,740,739,738,737,723,727,726,725,724,708,710,693,694,695,696,697,698,699,700,701,702,703,704,705,681,682,683,684,685,686,687,688,689,690,691,692,679,678,677,676,675,674,673,672,671,670,669,668,667,666,665,661,660,659,658,657,656,655,654,653,652,651,650,649,646,645,644,643,642,641,640,639,638,637,636,635,634,633,632,631,630,629,628,627,626,625,618,617,616,615,614,613,612,611,610,609,608,607,606,623,622,621,764,763,766,765,768,719,717,769,715,714,713,804,805,806,807,808,809,811,810,812,813,815,814,816,817,818,819,820,821,760,761,756,757,758,759,599,600,601,602,603,604,605,590,591,592,593,594,595,596,586,587,588,589,577,578,579,580,581,582,583,504,505,506,507,508,509,510,511,512,513,403,402,401,400,399,413,412,411,410,409,408,407,406,405,466,465,464,463,462,461,460,459,458,436,435,434,433,432,431,430,429,428,427,426,456,455,454,453,452,451,450,447,446,480,479,474,473,472,471,470,469,468,489,488,487,486,485,484,483,482,495,494,493,492,491,502,501,500,499,498,497,378,379,380,381,382,383,384,385,386,387,374,373,372,371,370,369,368,367,366,365,364,363,362,361,360,359,358,357,356,355,354,353,351,350,349,348,347,346,345,344,343,342,341,340,339,338,337,336,335,334,333,332,331,330,329,328,325,324,323,322,321,320,319,318,317,316,315,314,313,312,311,310,309,308,307,306,305,304,303,302,301,300,299,298,297,296,295,294,293,292,291,290,289,205,179,178,177,176,175,174,173,172,171,170,169,168,204,203,202,201,200,199,198,197,196,195,194,193,192,191,188,187,186,185,184,183,182,181,180,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,18,17,16,15,14,13,12,11,10,44,43,42,41,40,39,38,37,32,31,30,29,8,3,7,6,5,4,1,27,26,25,24,23,22,21,70,69,68,67,66,75,74,73,72,94,93,92,91,90,89,88,87,86,85,122,121,120,119,50,49,48,47,46,54,53,52,51,83,82,81,80,79,78,77,62,63,65,64,61,60,59,58,57,56)
AND (category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90))
GROUP BY c.id
ORDER BY counter DESC
LIMIT 20
(this query time : 0.025 s)
(total SQL time : 0.061 s)
(total time : 0.120 s)
(num rows : 20 )
[18]
SELECT
id,
name,
permalink,
id_uppercat,
uppercats,
global_rank
FROM piwigo_categories
WHERE id IN (2,3,18,105,32,33,19,24,20,13,35,17,36,66,70,67,75,73,74,91,41,81,14,49,21,9,37,39)
;
(this query time : 0.001 s)
(total SQL time : 0.061 s)
(total time : 0.121 s)
(num rows : 28 )
[19]
SELECT t.*, count(*) AS counter
FROM piwigo_image_tag
INNER JOIN piwigo_tags t ON tag_id = id
WHERE image_id IN (958,957,956,955,954,953,952,951,950,949,948,947,946,945,944,943,942,941,940,939,938,937,936,935,934,933,932,931,930,929,928,927,926,925,924,923,922,921,920,919,918,917,916,915,914,913,912,911,910,909,908,907,906,905,904,903,963,962,961,968,967,966,965,964,896,895,894,893,892,891,890,897,889,971,970,874,880,879,878,877)
GROUP BY t.id
ORDER BY counter DESC
LIMIT 12
(this query time : 0.001 s)
(total SQL time : 0.063 s)
(total time : 0.123 s)
(num rows : 0 )
[20]
SELECT *
FROM piwigo_images
WHERE id IN (958,957,956,955,954,953,952,951,950,949,948,947,946,945,944,943,942,941,940,939,938,937,936,935,934,933,932,931,930,929,928,927,926,925,924,923,922,921,920,919,918,917,916,915,914,913,912,911,910,909,908,907,906,905,904,903,963,962,961,968,967,966,965,964,896,895,894,893,892,891,890,897,889,971,970,874,880,879,878,877)
;
(this query time : 0.002 s)
(total SQL time : 0.064 s)
(total time : 0.161 s)
(num rows : 80 )
[0.194 s, 20 queries] : end include/category_default.inc.php
[21]
SELECT
id,
name
FROM piwigo_themes
ORDER BY name ASC
;
(this query time : 0.001 s)
(total SQL time : 0.065 s)
(total time : 0.226 s)
(num rows : 4 )
[22]
SELECT
id,
file,
representative_ext,
name,
comment,
width,
height,
date_creation,
path,
rotation
FROM piwigo_images
WHERE id IN (958,957,956,955,954,953,952,951,950,949,948,947,946,945,944,943,942,941,940,939,938,937,936,935,934,933,932,931,930,929,928,927,926,925,924,923,922,921,920,919,918,917,916,915,914,913,912,911,910,909,908,907,906,905,904,903,963,962,961,968,967,966,965,964,896,895,894,893,892,891,890,897,889,971,970,874,880,879,878,877,876,875,881,884,886,885,850,849,848,847,846,845,844,843,842,859,858,854,864,863,862,861,853,865,856,855,867,866,872,871,870,869,868,841,840,839,836,835,834,833,832,825,826,827,828,829,830,824,790,791,792,781,782,783,784,785,787,789,788,800,801,802,795,796,797,798,799,736,735,734,733,732,731,741,740,739,738,737,723,727,726,725,724,708,710,693,694,695,696,697,698,699,700,701,702,703,704,705,681,682,683,684,685,686,687,688,689,690,691,692,679,678,677,676,675,674,673,672,671,670,669,668,667,666,665,661,660,659,658,657,656,655,654,653,652,651,650,649,646,645,644,643,642,641,640,639,638,637,636,635,634,633,632,631,630,629,628,627,626,625,618,617,616,615,614,613,612,611,610,609,608,607,606,623,622,621,764,763,766,765,768,719,717,769,715,714,713,804,805,806,807,808,809,811,810,812,813,815,814,816,817,818,819,820,821,760,761,756,757,758,759,599,600,601,602,603,604,605,590,591,592,593,594,595,596,586,587,588,589,577,578,579,580,581,582,583,504,505,506,507,508,509,510,511,512,513,403,402,401,400,399,413,412,411,410,409,408,407,406,405,466,465,464,463,462,461,460,459,458,436,435,434,433,432,431,430,429,428,427,426,456,455,454,453,452,451,450,447,446,480,479,474,473,472,471,470,469,468,489,488,487,486,485,484,483,482,495,494,493,492,491,502,501,500,499,498,497,378,379,380,381,382,383,384,385,386,387,374,373,372,371,370,369,368,367,366,365,364,363,362,361,360,359,358,357,356,355,354,353,351,350,349,348,347,346,345,344,343,342,341,340,339,338,337,336,335,334,333,332,331,330,329,328,325,324,323,322,321,320,319,318,317,316,315,314,313,312,311,310,309,308,307,306,305,304,303,302,301,300,299,298,297,296,295,294,293,292,291,290,289,205,179,178,177,176,175,174,173,172,171,170,169,168,204,203,202,201,200,199,198,197,196,195,194,193,192,191,188,187,186,185,184,183,182,181,180,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,18,17,16,15,14,13,12,11,10,44,43,42,41,40,39,38,37,32,31,30,29,8,3,7,6,5,4,1,27,26,25,24,23,22,21,70,69,68,67,66,75,74,73,72,94,93,92,91,90,89,88,87,86,85,122,121,120,119,50,49,48,47,46,54,53,52,51,83,82,81,80,79,78,77,62,63,65,64,61,60,59,58,57,56)
ORDER BY FIELD(id, 958,957,956,955,954,953,952,951,950,949,948,947,946,945,944,943,942,941,940,939,938,937,936,935,934,933,932,931,930,929,928,927,926,925,924,923,922,921,920,919,918,917,916,915,914,913,912,911,910,909,908,907,906,905,904,903,963,962,961,968,967,966,965,964,896,895,894,893,892,891,890,897,889,971,970,874,880,879,878,877,876,875,881,884,886,885,850,849,848,847,846,845,844,843,842,859,858,854,864,863,862,861,853,865,856,855,867,866,872,871,870,869,868,841,840,839,836,835,834,833,832,825,826,827,828,829,830,824,790,791,792,781,782,783,784,785,787,789,788,800,801,802,795,796,797,798,799,736,735,734,733,732,731,741,740,739,738,737,723,727,726,725,724,708,710,693,694,695,696,697,698,699,700,701,702,703,704,705,681,682,683,684,685,686,687,688,689,690,691,692,679,678,677,676,675,674,673,672,671,670,669,668,667,666,665,661,660,659,658,657,656,655,654,653,652,651,650,649,646,645,644,643,642,641,640,639,638,637,636,635,634,633,632,631,630,629,628,627,626,625,618,617,616,615,614,613,612,611,610,609,608,607,606,623,622,621,764,763,766,765,768,719,717,769,715,714,713,804,805,806,807,808,809,811,810,812,813,815,814,816,817,818,819,820,821,760,761,756,757,758,759,599,600,601,602,603,604,605,590,591,592,593,594,595,596,586,587,588,589,577,578,579,580,581,582,583,504,505,506,507,508,509,510,511,512,513,403,402,401,400,399,413,412,411,410,409,408,407,406,405,466,465,464,463,462,461,460,459,458,436,435,434,433,432,431,430,429,428,427,426,456,455,454,453,452,451,450,447,446,480,479,474,473,472,471,470,469,468,489,488,487,486,485,484,483,482,495,494,493,492,491,502,501,500,499,498,497,378,379,380,381,382,383,384,385,386,387,374,373,372,371,370,369,368,367,366,365,364,363,362,361,360,359,358,357,356,355,354,353,351,350,349,348,347,346,345,344,343,342,341,340,339,338,337,336,335,334,333,332,331,330,329,328,325,324,323,322,321,320,319,318,317,316,315,314,313,312,311,310,309,308,307,306,305,304,303,302,301,300,299,298,297,296,295,294,293,292,291,290,289,205,179,178,177,176,175,174,173,172,171,170,169,168,204,203,202,201,200,199,198,197,196,195,194,193,192,191,188,187,186,185,184,183,182,181,180,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,18,17,16,15,14,13,12,11,10,44,43,42,41,40,39,38,37,32,31,30,29,8,3,7,6,5,4,1,27,26,25,24,23,22,21,70,69,68,67,66,75,74,73,72,94,93,92,91,90,89,88,87,86,85,122,121,120,119,50,49,48,47,46,54,53,52,51,83,82,81,80,79,78,77,62,63,65,64,61,60,59,58,57,56)
;
(this query time : 0.008 s)
(total SQL time : 0.072 s)
(total time : 0.239 s)
(num rows : 633 )
[23]
UPDATE piwigo_user_infos
SET last_visit = NOW(),
lastmodified = lastmodified
WHERE user_id = 2
(this query time : 0.014 s)
(total SQL time : 0.086 s)
(total time : 0.378 s)
(affected rows : 1 )
[24]
INSERT INTO piwigo_history
(
date,
time,
user_id,
IP,
section,
category_id,
search_id,
image_id,
image_type,
format_id,
auth_key_id,
tag_ids
)
VALUES
(
CURRENT_DATE,
CURRENT_TIME,
2,
'192.168.1.10',
'categories',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
)
;
(this query time : 0.042 s)
(total SQL time : 0.129 s)
(total time : 0.420 s)
(affected rows : 1 )