Query1:SELECT * FROM modoer_dbcache WHERE cache_key IN ('comm_dbcache_expire','comm_task_nexttime','comm_session_expire','comm_session_online')
Time:0.002881
id
select_type
table
partitions
type
possible_keys
key
key_len
ref
rows
filtered
Extra
1
SIMPLE
modoer_dbcache
range
PRIMARY
PRIMARY
600
4
100.00
Using where
Query2:SELECT * FROM modoer_session WHERE uniq = '6aa6232fd0bb6664da54698704c81124' LIMIT 0, 1
Time:0.002392
id
select_type
table
partitions
type
possible_keys
key
key_len
ref
rows
filtered
Extra
1
SIMPLE
modoer_session
const
uniq
uniq
96
const
1
100.00
Query3:SELECT COUNT(*) FROM modoer_album a LEFT JOIN modoer_subject s ON (a.sid = s.sid) WHERE a.city_id IN ('0','8822') AND s.pid = '1' AND num>='1'
Time:0.008492
id
select_type
table
partitions
type
possible_keys
key
key_len
ref
rows
filtered
Extra
1
SIMPLE
s
ref
PRIMARY,list_aid,pid,aid,list_city
aid
2
const
2226
100.00
Using where; Using index
Query4:SELECT a.*,s.name as sname,s.subname,s.pid FROM modoer_album a LEFT JOIN modoer_subject s ON (a.sid = s.sid) WHERE a.city_id IN ('0','8822') AND s.pid = '1' AND num>='1' ORDER BY albumid LIMIT 0, 16
Time:0.012516
id
select_type
table
partitions
type
possible_keys
key
key_len
ref
rows
filtered
Extra
1
SIMPLE
s
ref
PRIMARY,list_aid,pid,aid,list_city
list_aid
2
const
2226
100.00
Using index condition; Using temporary; Using filesort