0.0002689
| Memory Before: 1.76 Mb
| Memory After: 1.76 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: No
SELECT s.session_hash, s.id_hash, s.captcha_hash, s.user_id
FROM phpfox_log_session
AS s
WHERE s.session_hash = '5492336b6ff69c6eabd4ffdef1a00bfb' AND s.id_hash = 'd0b63444099757fedc3d79aa837e804c'
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | s | ref | session_hash,log_session | session_hash | 32 | const | 1 | Using where |
0.0001299
| Memory Before: 1.76 Mb
| Memory After: 1.76 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
INSERT INTO phpfox_log_view (user_id, ip_address, protocal, cache_data, time_stamp) VALUES ('0', '38.107.191.82', 'GET', 'a:4:{s:8:\"location\";s:31:\"/Admin/photo/view/fairy012-jpg/\";s:8:\"referrer\";N;s:10:\"user_agent\";s:48:\"CCBot/1.0 (+http://www.commoncrawl.org/bot.html)\";s:7:\"request\";s:54:\"a:1:{s:2:\"do\";s:31:\"/Admin/photo/view/fairy012-jpg/\";}\";}', '1284025831')
0.0001550
| Memory Before: 1.76 Mb
| Memory After: 1.76 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
UPDATE phpfox_log_session
SET last_activity = '1284025831', user_id = '0', location = '/Admin/photo/view/fairy012-jpg/', is_forum = '0', forum_id = '0', im_hide = '0', ip_address = '38.107.191.82', user_agent = 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'
WHERE session_hash = '5492336b6ff69c6eabd4ffdef1a00bfb'
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_log_session | ref | session_hash,log_session | session_hash | 32 | const | 1 | Using where |
0.0001659
| Memory Before: 2.33 Mb
| Memory After: 2.34 Mb
| Memory Used: 1.13 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 phpfox_theme_style
AS s
JOIN phpfox_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 | ref | is_default | is_default | 1 | const | 1 | |
| 1 | SIMPLE | t | eq_ref | PRIMARY,theme_id | PRIMARY | 2 | deathdlr_fox.s.theme_id | 1 | |
0.0000939
| Memory Before: 2.34 Mb
| Memory After: 2.34 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: No
SELECT folder
AS parent_style_folder
FROM phpfox_theme_style
WHERE style_id = 1
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_theme_style | ref | style_id | style_id | 2 | const | 1 | |
0.0000811
| Memory Before: 2.34 Mb
| Memory After: 2.34 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: No
SELECT folder
AS parent_theme_folder
FROM phpfox_theme
WHERE theme_id = 1
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_theme | const | PRIMARY,theme_id | PRIMARY | 2 | const | 1 | |
0.0002289
| Memory Before: 3.08 Mb
| Memory After: 3.08 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT u.*
FROM phpfox_user
AS u
WHERE u.user_name = 'Admin'
/* 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.0000920
| Memory Before: 3.22 Mb
| Memory After: 3.22 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT COUNT(*)
FROM phpfox_user_blocked
WHERE user_id = 111 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.0005150
| Memory Before: 3.51 Mb
| Memory After: 3.51 Mb
| Memory Used: 1.38 kb
| Rows: 1
| Slave: Yes
SELECT p.*, pi.*, pa.name_url
AS album_url, pa.name
AS album_title, pa.name_url
AS album_url, pa.password
AS album_password, u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible, pt.item_id
AS is_viewed
FROM phpfox_photo
AS p
JOIN phpfox_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox_photo_info
AS pi
ON(pi.photo_id = p.photo_id)
LEFT JOIN phpfox_photo_album
AS pa
ON(pa.album_id = p.album_id)
LEFT JOIN phpfox_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 = 'fairy012-jpg' AND p.user_id = 111
/* 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 | deathdlr_fox.p.photo_id | 1 | |
| 1 | SIMPLE | pa | eq_ref | PRIMARY,album_id | PRIMARY | 4 | deathdlr_fox.p.album_id | 1 | |
| 1 | SIMPLE | pt | ref | item_id | item_id | 8 | deathdlr_fox.p.photo_id,const | 8 | Using index |
0.0196390
| Memory Before: 3.58 Mb
| Memory After: 3.58 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT tag_id, item_id, tag_text, tag_url
FROM phpfox_tag
WHERE item_id = 319 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 | phpfox_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.0002310
| Memory Before: 3.71 Mb
| Memory After: 3.71 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT pc.parent_id, pc.category_id, pc.name, pc.name_url
FROM phpfox_photo_category_data
AS pcd
JOIN phpfox_photo_category
AS pc
ON(pc.category_id = pcd.category_id)
WHERE pcd.photo_id = 319
/* 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 | deathdlr_fox.pcd.category_id | 1 | Using where |
0.0003910
| Memory Before: 4.09 Mb
| Memory After: 4.09 Mb
| Memory Used: 1.13 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 phpfox_photo_tag
AS pt
LEFT JOIN phpfox_user
AS u
ON(u.user_id = pt.tag_user_id)
JOIN phpfox_photo
AS p
ON(p.photo_id = pt.photo_id)
WHERE pt.photo_id = 319
/* 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.0001531
| Memory Before: 4.49 Mb
| Memory After: 4.49 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT count_view
FROM phpfox_ad
WHERE ad_id = 9
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0001321
| Memory Before: 4.49 Mb
| Memory After: 4.49 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
UPDATE phpfox_ad
SET count_view = '73999'
WHERE ad_id = 9
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0000980
| Memory Before: 4.5 Mb
| Memory After: 4.5 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT count_view
FROM phpfox_ad
WHERE ad_id = 15
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0001009
| Memory Before: 4.5 Mb
| Memory After: 4.5 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
UPDATE phpfox_ad
SET count_view = '33177'
WHERE ad_id = 15
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0001500
| Memory Before: 4.82 Mb
| Memory After: 4.82 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT count_view
FROM phpfox_ad
WHERE ad_id = 10
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0001111
| Memory Before: 4.82 Mb
| Memory After: 4.83 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
UPDATE phpfox_ad
SET count_view = '115896'
WHERE ad_id = 10
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0010839
| Memory Before: 5.64 Mb
| Memory After: 5.64 Mb
| Memory Used: 1.12 kb
| Rows: 2
| Slave: Yes
SELECT p.destination, p.server_id, p.title_url, p.title, p.mature, p.album_id, pa.name_url
AS album_url, u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible
FROM phpfox_photo
AS p
JOIN phpfox_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox_photo_album
AS pa
ON(pa.album_id = p.album_id)
WHERE p.photo_id > 319 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 | photo_id | 4 | | 19 | Using where |
| 1 | SIMPLE | pa | const | PRIMARY,album_id | PRIMARY | 4 | const | 1 | |
| 1 | SIMPLE | u | eq_ref | PRIMARY | PRIMARY | 4 | deathdlr_fox.p.user_id | 1 | |
0.0006471
| Memory Before: 5.65 Mb
| Memory After: 5.65 Mb
| Memory Used: 1.12 kb
| Rows: 2
| Slave: Yes
SELECT p.destination, p.server_id, p.title_url, p.title, p.mature, p.album_id, pa.name_url
AS album_url, u.user_id, u.server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible
FROM phpfox_photo
AS p
JOIN phpfox_user
AS u
ON(u.user_id = p.user_id)
LEFT JOIN phpfox_photo_album
AS pa
ON(pa.album_id = p.album_id)
WHERE p.photo_id < 319 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_3 | 4 | | 236 | Using where |
| 1 | SIMPLE | u | eq_ref | PRIMARY | PRIMARY | 4 | deathdlr_fox.p.user_id | 1 | |
| 1 | SIMPLE | pa | const | PRIMARY,album_id | PRIMARY | 4 | const | 1 | |
0.0001340
| Memory Before: 5.62 Mb
| Memory After: 5.62 Mb
| Memory Used: 1.12 kb
| Rows: 1
| Slave: Yes
SELECT count_view
FROM phpfox_ad
WHERE ad_id = 11
/* OO Query */
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |
0.0001168
| Memory Before: 5.62 Mb
| Memory After: 5.62 Mb
| Memory Used: 1.07 kb
| Rows: -
| Slave: No
UPDATE phpfox_ad
SET count_view = '115583'
WHERE ad_id = 11
| Id | Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| 1 | SIMPLE | phpfox_ad | const | PRIMARY | PRIMARY | 4 | const | 1 | |