• 2023-07-16 8 visits 2023-07-16
  • IMG 20230716 135220 7 visits IMG 20230716 135220
  • IMG 20230716 123838 5 visits IMG 20230716 123838
  • IMG 20230716 123830 6 visits IMG 20230716 123830
  • 2023-10-07 8 visits 2023-10-07
  • IMG 20231007 142215 7 visits IMG 20231007 142215
  • IMG 20231007 141441 6 visits IMG 20231007 141441
  • IMG 20231007 132808 5 visits IMG 20231007 132808
  • IMG 20231007 124538 4 visits IMG 20231007 124538
  • IMG 20231007 124244 6 visits IMG 20231007 124244
[1] 
SELECT @@SESSION.sql_mode
(this query time : 0.000 s)
(total SQL time  : 0.000 s)
(total time      : 0.035 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.001 s)
(total SQL time  : 0.002 s)
(total time      : 0.036 s)
[3] 

SELECT param, value
 FROM piwigo_config
 
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.037 s)
(num rows        : 106 )
[4] 

SELECT data
  FROM piwigo_sessions
  WHERE id = 'C0A84lmco4teor1c8tgf2htehc59nh'
;
(this query time : 0.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.037 s)
(num rows        : 0 )
[5] 

SELECT * FROM piwigo_plugins
  WHERE state='active'
(this query time : 0.000 s)
(total SQL time  : 0.003 s)
(total time      : 0.038 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.004 s)
(total time      : 0.047 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.004 s)
(total time      : 0.048 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.005 s)
(total time      : 0.048 s)
(num rows        : 1 )
[9] 

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

SELECT DISTINCT(id)
  FROM piwigo_images
    INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
  WHERE date_available>=LEAST(SUBDATE(CURRENT_DATE,INTERVAL 7 DAY),SUBDATE('2023-11-09 20:28:26',INTERVAL 1 DAY))
  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,date_available DESC, file ASC, id ASC
;
(this query time : 0.008 s)
(total SQL time  : 0.013 s)
(total time      : 0.066 s)
(num rows        : 10 )
[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.034 s)
(total SQL time  : 0.039 s)
(total time      : 0.103 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.005 s)
(total SQL time  : 0.043 s)
(total time      : 0.111 s)
(num rows        : 71 )
[12] 
SELECT id, uppercats
    FROM piwigo_categories
    WHERE name LIKE "%%"
(this query time : 0.002 s)
(total SQL time  : 0.045 s)
(total time      : 0.175 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.002 s)
(total SQL time  : 0.046 s)
(total time      : 0.177 s)
(num rows        : 1 )
[14] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY)
(this query time : 0.001 s)
(total SQL time  : 0.047 s)
(total time      : 0.178 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 (973,972,971,970,969,968,967,966,965,964)
    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.001 s)
(total SQL time  : 0.048 s)
(total time      : 0.179 s)
(num rows        : 2 )
[16] 

SELECT
    id,
    name,
    permalink,
    id_uppercat,
    uppercats,
    global_rank
  FROM piwigo_categories
  WHERE id IN (2,3,18,106,107)
;
(this query time : 0.000 s)
(total SQL time  : 0.049 s)
(total time      : 0.180 s)
(num rows        : 5 )
[17] 

SELECT t.*, count(*) AS counter
  FROM piwigo_image_tag
    INNER JOIN piwigo_tags t ON tag_id = id
  WHERE image_id IN (973,972,971,970,969,968,967,966,965,964)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.000 s)
(total SQL time  : 0.049 s)
(total time      : 0.180 s)
(num rows        : 0 )
[18] 

SELECT *
  FROM piwigo_images
  WHERE id IN (973,972,971,970,969,968,967,966,965,964)
;
(this query time : 0.001 s)
(total SQL time  : 0.050 s)
(total time      : 0.230 s)
(num rows        : 10 )

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

[19] 

SELECT id FROM piwigo_images
WHERE latitude IS NOT NULL
  AND id IN (973,972,971,970,969,968,967,966,965,964)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.051 s)
(total time      : 0.315 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.051 s)
(total time      : 0.316 s)
(num rows        : 4 )
[21] 

            SELECT 
              id,
              file,
              representative_ext,
              name,
              comment,
              width,
              height,
              date_creation,
              path,
              rotation
            FROM piwigo_images
            WHERE id IN (973,972,971,970,969,968,967,966,965,964)
            ORDER BY FIELD(id, 973,972,971,970,969,968,967,966,965,964)
            ;
(this query time : 0.001 s)
(total SQL time  : 0.051 s)
(total time      : 0.321 s)
(num rows        : 10 )
[22] 

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

(this query time : 0.082 s)
(total SQL time  : 0.134 s)
(total time      : 0.478 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',
    'recent_pics',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.028 s)
(total SQL time  : 0.162 s)
(total time      : 0.506 s)
(affected rows   : 1 )