0.0005269
| Memory Before: 3.41 Mb
| Memory After: 3.42 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 ('d7f6190b7cffab3bdeebdd6125c09802', 'e2d155e2b9e93d282810a2a5a95c41b3', '0', '1369142579', '/SweetiePie/photo/view/baby-donkey-belongs-to-friends/', '0', '0', '0', '50.19.155.235', 'CCBot/2.0')
0.0001829
| 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.0005260
| 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 = 'SweetiePie'
/* 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 | 1 | Using where |
0.0002429
| 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 = 382 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.0293591
| 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 = 'baby-donkey-belongs-to-friends' AND p.user_id = 382
/* 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 | 1 | 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.0039010
| 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 = 1407 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.0037000
| Memory Before: 6.52 Mb
| Memory After: 6.53 Mb
| Memory Used: 1.55 kb
| Rows: 1
| 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 = 1407
/* 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.0025570
| 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 = 1407
/* 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.0011511
| 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 > 1407 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 | | 2242 | 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.0008070
| 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 < 1407 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 | | 1367 | 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.1081629
| Memory Before: 10.3 Mb
| Memory After: 10.31 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 = 1407 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 | 4 | 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] => d7f6190b7cffab3bdeebdd6125c09802
[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] => /SweetiePie/photo/view/baby-donkey-belongs-to-friends/
)