Demo

BYB
BYB
[1] 
SELECT @@SESSION.sql_mode
(this query time : 0.001 s)
(total SQL time  : 0.001 s)
(total time      : 0.029 s)
(num rows        : 1 )
[2] 

SELECT param, value
 FROM piwigo_config
 
;
(this query time : 0.001 s)
(total SQL time  : 0.002 s)
(total time      : 0.031 s)
(num rows        : 108 )
[3] 

SELECT data
  FROM piwigo_sessions
  WHERE id = 'D849e9d467b8155beef8ba77caba52e176c7'
;
(this query time : 0.002 s)
(total SQL time  : 0.003 s)
(total time      : 0.033 s)
(num rows        : 1 )
[4] 

SELECT * FROM piwigo_plugins
  WHERE state='active'
(this query time : 0.001 s)
(total SQL time  : 0.004 s)
(total time      : 0.034 s)
(num rows        : 6 )
[5] 

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.003 s)
(total SQL time  : 0.007 s)
(total time      : 0.046 s)
(num rows        : 0 )
[6] 

SELECT id AS id
     , username AS username
     , password AS password
     , mail_address AS email
  FROM piwigo_users
  WHERE id = '2'
(this query time : 0.001 s)
(total SQL time  : 0.008 s)
(total time      : 0.048 s)
(num rows        : 1 )
[7] 

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.009 s)
(total time      : 0.049 s)
(num rows        : 1 )
[8] 

SELECT *
  FROM piwigo_user_infos
  WHERE user_id = 2
;
(this query time : 0.002 s)
(total SQL time  : 0.011 s)
(total time      : 0.051 s)
(num rows        : 1 )
[9] 

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.012 s)
(total time      : 0.105 s)
(num rows        : 1 )
[10] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY)
(this query time : 0.001 s)
(total SQL time  : 0.013 s)
(total time      : 0.106 s)
(num rows        : 1 )
[11] 

SELECT *
  FROM piwigo_tags
  WHERE id IN (1,2,3)

(this query time : 0.001 s)
(total SQL time  : 0.014 s)
(total time      : 0.108 s)
(num rows        : 3 )
[12] 

SELECT SQL_CALC_FOUND_ROWS
    c.*,
    user_representative_picture_id,
    nb_images,
    date_last,
    max_date_last,
    count_images,
    nb_categories,
    count_categories
  FROM piwigo_categories c
    INNER JOIN piwigo_user_cache_categories ucc
    ON id = cat_id
    AND user_id = 2
  WHERE count_images > 0

  AND id_uppercat is NULL
      
-- after conditions

  ORDER BY `rank`
  LIMIT 12 OFFSET 0
;
(this query time : 0.001 s)
(total SQL time  : 0.015 s)
(total time      : 0.128 s)
(num rows        : 1 )
[13] 
SELECT FOUND_ROWS()
(this query time : 0.001 s)
(total SQL time  : 0.016 s)
(total time      : 0.129 s)
(num rows        : 1 )
[14] 

SELECT *
  FROM piwigo_images
  WHERE id IN (3)
;
(this query time : 0.001 s)
(total SQL time  : 0.017 s)
(total time      : 0.129 s)
(num rows        : 1 )

[0.136 s, 14 queries] : end include/category_cats.inc.php

[15] 
SELECT id,metaname,metaval FROM piwigo_meta WHERE metaname IN ('author', 'keywords', 'Description', 'robots');
(this query time : 0.001 s)
(total SQL time  : 0.018 s)
(total time      : 0.138 s)
(num rows        : 4 )
[16] 
SELECT * FROM piwigo_metaperso;
(this query time : 0.001 s)
(total SQL time  : 0.019 s)
(total time      : 0.139 s)
(num rows        : 0 )
[17] 

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,
    '216.73.216.102',
    'categories',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.090 s)
(total SQL time  : 0.109 s)
(total time      : 0.240 s)
(affected rows   : 1 )
[18] 

SELECT param, value
 FROM piwigo_config
 WHERE param = "send_piwigo_infos_last_notice"
;
(this query time : 0.001 s)
(total SQL time  : 0.110 s)
(total time      : 0.242 s)
(num rows        : 1 )