0.0005381
| Memory Before: 3.41 Mb
| Memory After: 3.41 Mb
| Memory Used: 1.47 kb
| Rows: -
| Slave: No
INSERT INTO phpfox2_log_session (session_hash, id_hash, user_id, last_activity, location, is_forum, forum_id, im_hide, ip_address, user_agent) VALUES ('8fecb0fb166cdabbf3a64b581581b38d', '3ac219aaa5a1a61ed2d7f48ef6183db0', '0', '1371647655', '/jayson/photo/view/tornado-warned-storm/', '0', '0', '0', '50.16.166.175', 'CCBot/2.0')
0.0002160
| Memory Before: 4.35 Mb
| Memory After: 4.35 Mb
| Memory Used: 1.55 kb
| Rows: 1
| Slave: No
SELECT s.style_id, s.parent_id
AS style_parent_id, s.folder
AS style_folder_name, t.folder
AS theme_folder_name, t.parent_id
AS theme_parent_id
FROM phpfox2_theme_style
AS s
JOIN phpfox2_theme
AS t
ON(t.theme_id = s.theme_id)
WHERE s.is_default = 1
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | s | system | is_default | MISSING KEY | | | 1 | |
| 1 | SIMPLE | t | system | PRIMARY,theme_id | MISSING KEY | | | 1 | |
0.0005140
| Memory Before: 5.56 Mb
| Memory After: 5.56 Mb
| Memory Used: 1.55 kb
| Rows: 1
| Slave: Yes
SELECT u.*
FROM phpfox2_user
AS u
WHERE u.user_name = 'jayson'
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | u | ref | user_name | user_name | 103 | const | 2 | Using where |
0.0003171
| Memory Before: 5.77 Mb
| Memory After: 5.78 Mb
| Memory Used: 1.55 kb
| Rows: 1
| Slave: Yes
SELECT COUNT(*)
FROM phpfox2_user_blocked
WHERE user_id = 1499 AND block_user_id = 0
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | | | | MISSING KEY | | | | Impossible WHERE noticed after reading const tables |
0.4175191
| Memory Before: 6.21 Mb
| Memory After: 6.21 Mb
| Memory Used: 1.55 kb
| Rows: 1
| Slave: Yes
SELECT u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible, p.*, pi.*, pa.name_url
AS album_url, pa.name
AS album_title, pa.name_url
AS album_url, pa.password
AS album_password, pt.item_id
AS is_viewed
FROM phpfox2_photo
AS p
JOIN phpfox2_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox2_photo_info
AS pi
ON(pi.photo_id = p.photo_id)
LEFT JOIN phpfox2_photo_album
AS pa
ON(pa.album_id = p.album_id)
LEFT JOIN phpfox2_photo_track
AS pt
ON(pt.item_id = p.photo_id AND pt.user_id = 0)
WHERE p.view_id = 0 AND p.group_id = 0 AND p.title_url = 'tornado-warned-storm' AND p.user_id = 1499
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | u | const | PRIMARY | PRIMARY | 4 | const | 1 | |
| 1 | SIMPLE | p | ref | view_id,view_id_2,view_id_3,view_id_4,view_id_5,user_id | view_id_2 | 266 | const,const,const,const | 2 | Using where |
| 1 | SIMPLE | pi | eq_ref | photo_id | photo_id | 4 | truckel0_phpfox.p.photo_id | 1 | |
| 1 | SIMPLE | pa | eq_ref | PRIMARY,album_id | PRIMARY | 4 | truckel0_phpfox.p.album_id | 1 | |
| 1 | SIMPLE | pt | ref | item_id | item_id | 8 | truckel0_phpfox.p.photo_id,const | 7 | Using index |
0.0009151
| Memory Before: 6.32 Mb
| Memory After: 6.32 Mb
| Memory Used: 1.55 kb
| Rows: 0
| Slave: Yes
SELECT tag_id, item_id, tag_text, tag_url
FROM phpfox2_tag
WHERE item_id = 3114 AND category_id = 'photo'
ORDER BY tag_id ASC
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox2_tag | ref | item_id,category_id,user_search,user_search_general,item_id_2,item_id_3 | item_id | 81 | const,const | 1 | Using where; Using filesort |
0.0027049
| Memory Before: 6.52 Mb
| Memory After: 6.53 Mb
| Memory Used: 1.55 kb
| Rows: 0
| Slave: Yes
SELECT pc.parent_id, pc.category_id, pc.name, pc.name_url
FROM phpfox2_photo_category_data
AS pcd
JOIN phpfox2_photo_category
AS pc
ON(pc.category_id = pcd.category_id)
WHERE pcd.photo_id = 3114
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | pcd | ref | photo_id,category_id | photo_id | 4 | const | 1 | |
| 1 | SIMPLE | pc | eq_ref | PRIMARY | PRIMARY | 3 | truckel0_phpfox.pcd.category_id | 1 | Using where |
0.0004871
| Memory Before: 7.09 Mb
| Memory After: 7.09 Mb
| Memory Used: 1.55 kb
| Rows: 0
| Slave: Yes
SELECT p.user_id
AS photo_owner_id, pt.tag_id, pt.user_id
AS post_user_id, pt.content, pt.position_x, pt.position_y, pt.width, pt.height, u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible
FROM phpfox2_photo_tag
AS pt
LEFT JOIN phpfox2_user
AS u
ON(u.user_id = pt.tag_user_id)
JOIN phpfox2_photo
AS p
ON(p.photo_id = pt.photo_id)
WHERE pt.photo_id = 3114
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | | | | MISSING KEY | | | | Impossible WHERE noticed after reading const tables |
0.0034301
| Memory Before: 9.69 Mb
| Memory After: 9.69 Mb
| Memory Used: 1.55 kb
| Rows: 2
| Slave: Yes
SELECT u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible, p.destination, p.server_id, p.title_url, p.title, p.mature, p.album_id, pa.name_url
AS album_url
FROM phpfox2_photo
AS p
JOIN phpfox2_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox2_photo_album
AS pa
ON(pa.album_id = p.album_id)
WHERE p.photo_id > 3114 AND p.album_id = 0 AND p.group_id = 0 AND p.view_id = 0
ORDER BY p.photo_id ASC
LIMIT 2
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | p | range | PRIMARY,photo_id,album_id,photo_album,view_id,user_album,view_id_2,view_id_3,photo_id_2,view_id_4,album_id_2,view_id_5,photo_id_3,user_id | PRIMARY | 4 | | 552 | Using where |
| 1 | SIMPLE | pa | const | PRIMARY,album_id | PRIMARY | 4 | const | 1 | |
| 1 | SIMPLE | u | eq_ref | PRIMARY | PRIMARY | 4 | truckel0_phpfox.p.user_id | 1 | |
0.0015061
| Memory Before: 9.7 Mb
| Memory After: 9.7 Mb
| Memory Used: 1.55 kb
| Rows: 2
| Slave: Yes
SELECT u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible, p.destination, p.server_id, p.title_url, p.title, p.mature, p.album_id, pa.name_url
AS album_url
FROM phpfox2_photo
AS p
JOIN phpfox2_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox2_photo_album
AS pa
ON(pa.album_id = p.album_id)
WHERE p.photo_id < 3114 AND p.album_id = 0 AND p.group_id = 0 AND p.view_id = 0
ORDER BY p.photo_id
DESC
LIMIT 2
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | p | range | PRIMARY,photo_id,album_id,photo_album,view_id,user_album,view_id_2,view_id_3,photo_id_2,view_id_4,album_id_2,view_id_5,photo_id_3,user_id | photo_id_2 | 4 | | 3027 | Using where |
| 1 | SIMPLE | pa | const | PRIMARY,album_id | PRIMARY | 4 | const | 1 | |
| 1 | SIMPLE | u | eq_ref | PRIMARY | PRIMARY | 4 | truckel0_phpfox.p.user_id | 1 | |
0.0178339
| Memory Before: 10.3 Mb
| Memory After: 10.3 Mb
| Memory Used: 1.55 kb
| Rows: 1
| Slave: Yes
SELECT cmt.*, comment_text.text_parsed
AS text, u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible
FROM phpfox2_comment
AS cmt
LEFT JOIN phpfox2_comment_text
AS comment_text
ON(comment_text.comment_id = cmt.comment_id)
LEFT JOIN phpfox2_user
AS u
ON(u.user_id = cmt.user_id)
WHERE cmt.type_id = 'photo' AND cmt.item_id = 3114 AND cmt.view_id = 0
ORDER BY cmt.time_stamp
DESC
LIMIT 10
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | cmt | ref | type_id,view_id | type_id | 82 | const,const,const | 3 | Using where; Using filesort |
| 1 | SIMPLE | comment_text | ref | comment_id | comment_id | 4 | truckel0_phpfox.cmt.comment_id | 12 | |
| 1 | SIMPLE | u | eq_ref | PRIMARY | PRIMARY | 4 | truckel0_phpfox.cmt.user_id | 1 | |
Array
(
[session] => 8fecb0fb166cdabbf3a64b581581b38d
[theme] => a:5:{s:8:"style_id";s:1:"1";s:15:"style_parent_id";s:1:"0";s:17:"style_folder_name";s:7:"default";s:17:"theme_folder_name";s:7:"default";s:15:"theme_parent_id";s:1:"0";}
[redirect] => /jayson/photo/view/tornado-warned-storm/
)