• IMG 20231008 142142 4 visits IMG 20231008 142142
  • IMG 20231008 140730 1 4 visits IMG 20231008 140730 1
  • IMG 20231008 133035 4 visits IMG 20231008 133035
  • 2023-10-08 4 visits 2023-10-08
  • IMG 20221112 123313 4 visits IMG 20221112 123313
  • IMG 20211009 143120 3 visits IMG 20211009 143120
  • IMG 20220207 145214 4 visits IMG 20220207 145214
  • IMG 20220206 132620 3 visits IMG 20220206 132620
  • IMG 20210530 124039 4 visits IMG 20210530 124039
  • 23 05 2021 10 28 5 visits 23 05 2021 10 28
  • IMG 20210529 173806 3 visits IMG 20210529 173806
  • 20200718_174708 34 visits 20200718_174708
  • 20200718_153345 18 visits 20200718_153345
  • 20190721_133833 20 visits 20190721_133833
  • 20200713_124235 7 visits 20200713_124235
[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.021 s)
(num rows        : 106 )
[4] 

SELECT data
  FROM piwigo_sessions
  WHERE id = 'C0A8ilpiltfflo316bvqk70ks37k4v'
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.022 s)
(num rows        : 1 )
[5] 

SELECT * FROM piwigo_plugins
  WHERE state='active'
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.022 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.003 s)
(total time      : 0.027 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.003 s)
(total time      : 0.028 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.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.029 s)
(num rows        : 1 )
[9] 

SELECT *
  FROM piwigo_user_infos
  WHERE user_id = 2
;
(this query time : 0.000 s)
(total SQL time  : 0.004 s)
(total time      : 0.029 s)
(num rows        : 1 )
[10] 

SELECT DISTINCT(id)
  FROM piwigo_images
    INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
  WHERE image_id IN (65,102,617,436,930,757,449,643,12,460,904,790,902,928,113)
    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))
  ORDER BY date_available DESC, file ASC, id ASC
;
(this query time : 0.002 s)
(total SQL time  : 0.005 s)
(total time      : 0.035 s)
(num rows        : 15 )
[10] 
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.011 s)
(total SQL time  : 0.014 s)
(total time      : 0.048 s)
(num rows        : 630 )
[11] 
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.018 s)
(total time      : 0.054 s)
(num rows        : 71 )
[12] 
SELECT id, uppercats
    FROM piwigo_categories
    WHERE name LIKE "%%"
(this query time : 0.001 s)
(total SQL time  : 0.019 s)
(total time      : 0.077 s)
(num rows        : 0 )
[13] 

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.001 s)
(total SQL time  : 0.020 s)
(total time      : 0.077 s)
(num rows        : 1 )
[14] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.020 s)
(total time      : 0.078 s)
(num rows        : 1 )
[15] 

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 (930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
    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.030 s)
(total SQL time  : 0.050 s)
(total time      : 0.107 s)
(num rows        : 11 )
[16] 

SELECT
    id,
    name,
    permalink,
    id_uppercat,
    uppercats,
    global_rank
  FROM piwigo_categories
  WHERE id IN (2,3,18,105,19,17,4,21,9,32,41,20,42,40,66,67,70,88,91)
;
(this query time : 0.001 s)
(total SQL time  : 0.050 s)
(total time      : 0.108 s)
(num rows        : 19 )
[17] 

SELECT t.*, count(*) AS counter
  FROM piwigo_image_tag
    INNER JOIN piwigo_tags t ON tag_id = id
  WHERE image_id IN (930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.096 s)
(total SQL time  : 0.146 s)
(total time      : 0.204 s)
(num rows        : 0 )
[18] 

SELECT *
  FROM piwigo_images
  WHERE id IN (930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
;
(this query time : 0.001 s)
(total SQL time  : 0.147 s)
(total time      : 0.240 s)
(num rows        : 15 )

[0.333 s, 18 queries] : end include/category_default.inc.php

[19] 

SELECT id FROM piwigo_images
WHERE latitude IS NOT NULL
  AND id IN (930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.147 s)
(total time      : 0.364 s)
(num rows        : 1 )
[20] 

SELECT
    id,
    name
  FROM piwigo_themes
  ORDER BY name ASC
;
(this query time : 0.000 s)
(total SQL time  : 0.148 s)
(total time      : 0.365 s)
(num rows        : 4 )
[21] 

            SELECT 
              id,
              file,
              representative_ext,
              name,
              comment,
              width,
              height,
              date_creation,
              path,
              rotation
            FROM piwigo_images
            WHERE id IN (930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
            ORDER BY FIELD(id, 930,928,904,902,790,757,643,617,460,449,436,113,102,65,12)
            ;
(this query time : 0.001 s)
(total SQL time  : 0.149 s)
(total time      : 0.370 s)
(num rows        : 15 )
[22] 

UPDATE piwigo_user_infos
  SET last_visit = NOW(),
      lastmodified = lastmodified
  WHERE user_id = 2

(this query time : 0.061 s)
(total SQL time  : 0.209 s)
(total time      : 0.484 s)
(affected rows   : 1 )
[23] 

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',
    'list',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.011 s)
(total SQL time  : 0.221 s)
(total time      : 0.495 s)
(affected rows   : 1 )