• (45) 20200521_115216 45 visits 20200521_115216
  • (42) la pinea 42 visits la pinea
  • (41) 20200521_115214 41 visits 20200521_115214
  • (39) 20200718_180956 39 visits 20200718_180956
  • (38) 20200521_115245 38 visits 20200521_115245
  • (37) 20200718_180941 37 visits 20200718_180941
  • (37) 20200521_115243 37 visits 20200521_115243
  • (36) 20200521_115247 36 visits 20200521_115247
  • (34) 20200718_180948 34 visits 20200718_180948
  • (34) 20200718_174708 34 visits 20200718_174708
  • (33) 20200718_183749 33 visits 20200718_183749
  • (33) 20200718_173616 33 visits 20200718_173616
  • (31) 20200718_173547 31 visits 20200718_173547
  • (30) 20200718_173558 30 visits 20200718_173558
  • (30) 20200718_165429 30 visits 20200718_165429
[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 = 'C0A8buqo0i930rvm78sbbcmf7i5k0e'
;
(this query time : 0.000 s)
(total SQL time  : 0.001 s)
(total time      : 0.021 s)
(num rows        : 1 )
[5] 

SELECT * FROM piwigo_plugins
  WHERE state='active'
(this query time : 0.000 s)
(total SQL time  : 0.001 s)
(total time      : 0.021 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.002 s)
(total time      : 0.026 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.002 s)
(total time      : 0.027 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.003 s)
(total time      : 0.027 s)
(num rows        : 1 )
[9] 

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

SELECT DISTINCT(id)
  FROM piwigo_images
    INNER JOIN piwigo_image_category AS ic ON id = ic.image_id
  WHERE hit > 0
    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 hit DESC, id DESC
  LIMIT 15
;
(this query time : 0.012 s)
(total SQL time  : 0.015 s)
(total time      : 0.044 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.017 s)
(total SQL time  : 0.019 s)
(total time      : 0.065 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.006 s)
(total SQL time  : 0.025 s)
(total time      : 0.074 s)
(num rows        : 71 )
[12] 
SELECT id, uppercats
    FROM piwigo_categories
    WHERE name LIKE "%%"
(this query time : 0.001 s)
(total SQL time  : 0.026 s)
(total time      : 0.098 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.000 s)
(total SQL time  : 0.027 s)
(total time      : 0.099 s)
(num rows        : 1 )
[14] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.027 s)
(total time      : 0.099 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 (47,45,46,116,49,114,48,50,115,113,117,111,109,110,106)
    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.028 s)
(total time      : 0.100 s)
(num rows        : 2 )
[16] 

SELECT
    id,
    name,
    permalink,
    id_uppercat,
    uppercats,
    global_rank
  FROM piwigo_categories
  WHERE id IN (2,3,19,17,20,10)
;
(this query time : 0.000 s)
(total SQL time  : 0.029 s)
(total time      : 0.101 s)
(num rows        : 6 )
[17] 

SELECT t.*, count(*) AS counter
  FROM piwigo_image_tag
    INNER JOIN piwigo_tags t ON tag_id = id
  WHERE image_id IN (47,45,46,116,49,114,48,50,115,113,117,111,109,110,106)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.000 s)
(total SQL time  : 0.029 s)
(total time      : 0.101 s)
(num rows        : 0 )
[18] 

SELECT *
  FROM piwigo_images
  WHERE id IN (47,45,46,116,49,114,48,50,115,113,117,111,109,110,106)
;
(this query time : 0.001 s)
(total SQL time  : 0.030 s)
(total time      : 0.153 s)
(num rows        : 15 )

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

[19] 

SELECT
    id,
    name
  FROM piwigo_themes
  ORDER BY name ASC
;
(this query time : 0.001 s)
(total SQL time  : 0.030 s)
(total time      : 0.214 s)
(num rows        : 4 )
[20] 

            SELECT 
              id,
              file,
              representative_ext,
              name,
              comment,
              width,
              height,
              date_creation,
              path,
              rotation
            FROM piwigo_images
            WHERE id IN (47,45,46,116,49,114,48,50,115,113,117,111,109,110,106)
            ORDER BY FIELD(id, 47,45,46,116,49,114,48,50,115,113,117,111,109,110,106)
            ;
(this query time : 0.001 s)
(total SQL time  : 0.031 s)
(total time      : 0.220 s)
(num rows        : 15 )
[21] 

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

(this query time : 0.036 s)
(total SQL time  : 0.067 s)
(total time      : 0.307 s)
(affected rows   : 1 )
[22] 

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',
    'most_visited',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.043 s)
(total SQL time  : 0.111 s)
(total time      : 0.351 s)
(affected rows   : 1 )