A Love Affair, Through The Lens

A photo gallery by Mark Richter
[1] 
SET NAMES "utf8"
(this query time : 0.001 s)
(total SQL time  : 0.001 s)
(total time      : 0.143 s)
[2] 

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

SELECT * FROM piwigo_plugins
  WHERE state='active'
(this query time : 0.001 s)
(total SQL time  : 0.004 s)
(total time      : 0.148 s)
(num rows        : 3 )
[4] 
SELECT * FROM piwigo_user_infos WHERE user_id = 2;
(this query time : 0.001 s)
(total SQL time  : 0.005 s)
(total time      : 0.186 s)
(num rows        : 1 )
[5] 

	      SELECT value
	      FROM piwigo_config
	      WHERE param = 'piclens'
	    ;
(this query time : 0.001 s)
(total SQL time  : 0.006 s)
(total time      : 0.205 s)
(num rows        : 1 )
[6] 

SELECT * FROM piwigo_plugins
  WHERE state='active' AND id="PWG_Stuffs"
(this query time : 0.001 s)
(total SQL time  : 0.008 s)
(total time      : 0.211 s)
(num rows        : 0 )
[7] 

SELECT data
  FROM piwigo_sessions
  WHERE id = '369Einfo8494s1l383i2ca9dfs4u23'
;
(this query time : 0.001 s)
(total SQL time  : 0.009 s)
(total time      : 0.216 s)
(num rows        : 0 )
[8] 

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.010 s)
(total time      : 0.218 s)
(num rows        : 1 )
[9] 

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.002 s)
(total SQL time  : 0.012 s)
(total time      : 0.220 s)
(num rows        : 1 )
[10] 

SELECT id, name
  FROM piwigo_languages
  ORDER BY name ASC
;
(this query time : 0.002 s)
(total SQL time  : 0.014 s)
(total time      : 0.222 s)
(num rows        : 44 )
[11] 

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.015 s)
(total time      : 0.306 s)
(num rows        : 3 )
[12] 
SELECT DISTINCT id, title, permalink
FROM piwigo_additionalpages
LEFT JOIN piwigo_user_group
  ON user_id = 2
WHERE (lang IS NULL OR lang = "en_UK")
  AND (users IS NULL OR users LIKE "%guest%")
  AND (groups IS NULL OR groups REGEXP CONCAT("(^|,)",group_id,"(,|$)"))
  AND level <= 0
  AND pos >= 0
ORDER BY pos ASC
;
(this query time : 0.002 s)
(total SQL time  : 0.017 s)
(total time      : 0.310 s)
(num rows        : 1 )
[13] 

SELECT
    c.*,
    user_representative_picture_id,
    nb_images,
    date_last,
    max_date_last,
    count_images,
    count_categories
  FROM piwigo_categories c
    INNER JOIN piwigo_user_cache_categories ucc ON id = cat_id AND user_id = 2
  WHERE id_uppercat is NULL
    
  ORDER BY rank
;
(this query time : 0.003 s)
(total SQL time  : 0.020 s)
(total time      : 0.396 s)
(num rows        : 3 )
[14] 

SELECT *
  FROM piwigo_images
  WHERE id IN (258,57,264)
;
(this query time : 0.002 s)
(total SQL time  : 0.022 s)
(total time      : 0.398 s)
(num rows        : 3 )

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

[15] 

INSERT INTO piwigo_history
  (
    date,
    time,
    user_id,
    IP,
    section,
    category_id,
    image_id,
    image_type,
    tag_ids
  )
  VALUES
  (
    CURRENT_DATE,
    CURRENT_TIME,
    2,
    '54.158.30.219',
    'categories',
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.001 s)
(total SQL time  : 0.023 s)
(total time      : 0.482 s)
(affected rows   : 1 )