SQL Report


Page generated in 0.0802 seconds with 25 queries + 5 queries returning data from cache

Time spent on postgres queries: 0.01906s | Time spent on PHP: 0.06109s



Query #1
QUERY PLAN
Seq Scan on phpbb_config (cost=0.00..10.53 rows=28 width=22)
Filter: (is_dynamic = 1)

Before: 0.03650s | After: 0.03672s | Elapsed: 0.00023s



Query #2
QUERY PLAN
Nested Loop (cost=0.69..16.73 rows=1 width=1474)
-> Index Scan using pin_session_pkey on pin_session s (cost=0.41..8.43 rows=1 width=540)
Index Cond: (session_id = '35a687f0f2ff793fbd82a685a535486e'::text)
-> Index Scan using phpbb_users_pkey on phpbb_users u (cost=0.28..8.29 rows=1 width=934)
Index Cond: (user_id = s.uid)

Before: 0.04057s | After: 0.04101s | Elapsed: 0.00044s



Query #3
QUERY PLAN
Index Scan using phpbb_users_pkey on phpbb_users (cost=0.28..8.29 rows=1 width=934)
Index Cond: (user_id = 1)

Before: 0.04188s | After: 0.04210s | Elapsed: 0.00022s



Query results obtained from the cache

Before: 0.04291s | After: 0.04297s | Elapsed [cache]: 0.00006s | Elapsed [db]: 0.00016s



Query #5

Affected rows: 0 | Before: 0.04308s | After: 0.04324s | Elapsed: 0.00016s



Query #6
QUERY PLAN
Index Scan using phpbb_config_pkey on phpbb_config (cost=0.27..8.29 rows=1 width=24)
Index Cond: ((config_name)::text = 'rand_seed_last_update'::text)

Affected rows: 1 | Before: 0.04345s | After: 0.04454s | Elapsed: 0.00109s



Query #7
QUERY PLAN
Index Scan using phpbb_config_pkey on phpbb_config (cost=0.27..8.29 rows=1 width=24)
Index Cond: ((config_name)::text = 'rand_seed'::text)

Affected rows: 1 | Before: 0.04475s | After: 0.04544s | Elapsed: 0.00069s



Query #8

Before: 0.04550s | After: 0.04623s | Elapsed: 0.00072s



Query #9
QUERY PLAN
Aggregate (cost=1993.48..1993.49 rows=1 width=8)
-> Seq Scan on pin_session (cost=0.00..1993.47 rows=1 width=33)
Filter: ((update_time >= 1632424284) AND (uid = 1))

Before: 0.04666s | After: 0.05115s | Elapsed: 0.00449s



Query results obtained from the cache

Before: 0.05279s | After: 0.05284s | Elapsed [cache]: 0.00005s | Elapsed [db]: 0.00016s



Query #11
QUERY PLAN
Seq Scan on phpbb_points (cost=0.00..10.70 rows=70 width=1064)

Before: 0.05330s | After: 0.05344s | Elapsed: 0.00014s



Query #12
QUERY PLAN
Hash Join (cost=8.31..12.12 rows=1 width=5279)
Hash Cond: (f.forum_id = t.forum_id)
-> Seq Scan on phpbb_forums f (cost=0.00..3.63 rows=63 width=5008)
-> Hash (cost=8.30..8.30 rows=1 width=271)
-> Index Scan using phpbb_topics_pkey on phpbb_topics t (cost=0.28..8.30 rows=1 width=271)
Index Cond: (topic_id = 3157)

Before: 0.05472s | After: 0.05515s | Elapsed: 0.00042s



Query results obtained from the cache

Before: 0.05560s | After: 0.05564s | Elapsed [cache]: 0.00005s | Elapsed [db]: 0.00013s



Query results obtained from the cache

Before: 0.05683s | After: 0.05688s | Elapsed [cache]: 0.00005s | Elapsed [db]: 0.00028s



Query #15
QUERY PLAN
Limit (cost=364.98..364.99 rows=1 width=12)
-> Sort (cost=364.98..364.99 rows=1 width=12)
Sort Key: post_time, post_id
-> Seq Scan on phpbb_posts p (cost=0.00..364.97 rows=1 width=12)
Filter: ((topic_id = 3157) AND (post_visibility = 1))

Before: 0.05786s | After: 0.06021s | Elapsed: 0.00235s



Query #16
QUERY PLAN
Nested Loop Left Join (cost=0.56..52.23 rows=1 width=1472)
Join Filter: (z.zebra_id = p.poster_id)
-> Nested Loop (cost=0.56..16.61 rows=1 width=1468)
-> Index Scan using phpbb_posts_pkey on phpbb_posts p (cost=0.28..8.30 rows=1 width=534)
Index Cond: (post_id = 4855)
-> Index Scan using phpbb_users_pkey on phpbb_users u (cost=0.28..8.29 rows=1 width=934)
Index Cond: (user_id = p.poster_id)
-> Seq Scan on phpbb_zebra z (cost=0.00..35.50 rows=10 width=8)
Filter: (user_id = 1)

Before: 0.06146s | After: 0.06208s | Elapsed: 0.00063s



Query #17
QUERY PLAN
Seq Scan on phpbb_lang (cost=0.00..1.02 rows=1 width=2)
Filter: ((lang_iso)::text = 'zh-cn'::text)

Before: 0.06325s | After: 0.06337s | Elapsed: 0.00012s



Query #18
QUERY PLAN
Sort (cost=12.09..12.10 rows=1 width=5194)
Sort Key: f.field_order
-> Nested Loop (cost=0.00..12.08 rows=1 width=5194)
Join Filter: (l.field_id = f.field_id)
-> Seq Scan on phpbb_profile_lang l (cost=0.00..10.88 rows=1 width=1072)
Filter: (lang_id = 3)
-> Seq Scan on phpbb_profile_fields f (cost=0.00..1.20 rows=1 width=4122)
Filter: ((field_active = 1) AND (field_no_view = 0))

Before: 0.06394s | After: 0.06430s | Elapsed: 0.00036s



Query #19
QUERY PLAN
Seq Scan on phpbb_profile_fields_data (cost=0.00..10.12 rows=1 width=5744)
Filter: (user_id = 53)

Before: 0.06466s | After: 0.06478s | Elapsed: 0.00012s



Query #20
QUERY PLAN
GroupAggregate (cost=0.00..219.73 rows=1 width=14)
Group Key: session_user_id
-> Seq Scan on phpbb_sessions (cost=0.00..219.71 rows=1 width=14)
Filter: (session_user_id = 53)

Before: 0.06527s | After: 0.06627s | Elapsed: 0.00101s



Query #21
QUERY PLAN
Nested Loop (cost=0.00..4.30 rows=1 width=24)
Join Filter: (a.auth_option_id = ao.auth_option_id)
-> Seq Scan on phpbb_acl_users a (cost=0.00..1.45 rows=1 width=14)
Filter: ((auth_role_id = 0) AND (user_id = 53))
-> Seq Scan on phpbb_acl_options ao (cost=0.00..2.84 rows=1 width=14)
Filter: ((auth_option)::text = 'u_readpm'::text)

Before: 0.06689s | After: 0.06712s | Elapsed: 0.00023s



Query #22
QUERY PLAN
Nested Loop (cost=4.30..11.71 rows=1 width=28)
Join Filter: (r.role_id = a.auth_role_id)
-> Seq Scan on phpbb_acl_users a (cost=0.00..1.38 rows=1 width=12)
Filter: (user_id = 53)
-> Nested Loop (cost=4.30..10.30 rows=3 width=20)
-> Seq Scan on phpbb_acl_options ao (cost=0.00..2.84 rows=1 width=14)
Filter: ((auth_option)::text = 'u_readpm'::text)
-> Bitmap Heap Scan on phpbb_acl_roles_data r (cost=4.30..7.43 rows=3 width=10)
Recheck Cond: (auth_option_id = ao.auth_option_id)
-> Bitmap Index Scan on ath_op_id (cost=0.00..4.29 rows=3 width=0)
Index Cond: (auth_option_id = ao.auth_option_id)

Before: 0.06771s | After: 0.06805s | Elapsed: 0.00034s



Query #23
QUERY PLAN
Nested Loop (cost=2.98..38.05 rows=1 width=24)
Join Filter: ((ug.group_leader <> 1) OR (g.group_skip_auth <> 1))
-> Nested Loop (cost=2.85..37.60 rows=1 width=34)
Join Filter: (a.group_id = ug.group_id)
-> Hash Join (cost=2.85..9.98 rows=1 width=24)
Hash Cond: (a.auth_option_id = ao.auth_option_id)
-> Seq Scan on phpbb_acl_groups a (cost=0.00..7.03 rows=41 width=14)
Filter: (auth_role_id = 0)
-> Hash (cost=2.84..2.84 rows=1 width=14)
-> Seq Scan on phpbb_acl_options ao (cost=0.00..2.84 rows=1 width=14)
Filter: ((auth_option)::text = 'u_readpm'::text)
-> Seq Scan on phpbb_user_group ug (cost=0.00..27.57 rows=3 width=10)
Filter: ((user_pending = 0) AND (user_id = 53))
-> Index Scan using phpbb_groups_pkey on phpbb_groups g (cost=0.13..0.44 rows=1 width=6)
Index Cond: (group_id = a.group_id)

Before: 0.06899s | After: 0.06979s | Elapsed: 0.00080s



Query #24
QUERY PLAN
Hash Join (cost=14.83..42.67 rows=22 width=24)
Hash Cond: (ug.group_id = a.group_id)
-> Hash Join (cost=1.16..28.74 rows=3 width=12)
Hash Cond: (ug.group_id = g.group_id)
Join Filter: ((ug.group_leader <> 1) OR (g.group_skip_auth <> 1))
-> Seq Scan on phpbb_user_group ug (cost=0.00..27.57 rows=3 width=10)
Filter: ((user_pending = 0) AND (user_id = 53))
-> Hash (cost=1.07..1.07 rows=7 width=6)
-> Seq Scan on phpbb_groups g (cost=0.00..1.07 rows=7 width=6)
-> Hash (cost=13.29..13.29 rows=31 width=24)
-> Nested Loop (cost=4.44..13.29 rows=31 width=24)
-> Nested Loop (cost=4.30..10.30 rows=3 width=20)
-> Seq Scan on phpbb_acl_options ao (cost=0.00..2.84 rows=1 width=14)
Filter: ((auth_option)::text = 'u_readpm'::text)
-> Bitmap Heap Scan on phpbb_acl_roles_data r (cost=4.30..7.43 rows=3 width=10)
Recheck Cond: (auth_option_id = ao.auth_option_id)
-> Bitmap Index Scan on ath_op_id (cost=0.00..4.29 rows=3 width=0)
Index Cond: (auth_option_id = ao.auth_option_id)
-> Index Scan using auth_role_id on phpbb_acl_groups a (cost=0.15..0.70 rows=29 width=12)
Index Cond: (auth_role_id = r.role_id)

Before: 0.07081s | After: 0.07186s | Elapsed: 0.00105s



Query #25
QUERY PLAN
Seq Scan on phpbb_banlist (cost=0.00..1.07 rows=1 width=4)
Filter: ((ban_exclude <> 1) AND (ban_userid = 53) AND (ban_end = 0))

Before: 0.07219s | After: 0.07230s | Elapsed: 0.00012s



Query #26
QUERY PLAN
Seq Scan on phpbb_bank (cost=0.00..1.23 rows=1 width=8)
Filter: (user_id = 53)

Before: 0.07363s | After: 0.07377s | Elapsed: 0.00014s



Query #27
QUERY PLAN
Index Scan using phpbb_topics_pkey on phpbb_topics (cost=0.28..8.30 rows=1 width=271)
Index Cond: (topic_id = 3157)

Affected rows: 1 | Before: 0.07424s | After: 0.07537s | Elapsed: 0.00113s



Query #28
QUERY PLAN
Aggregate (cost=244.40..244.41 rows=1 width=8)
-> Seq Scan on phpbb_sessions s (cost=0.00..244.40 rows=1 width=13)
Filter: ((session_time >= 1632431160) AND (session_user_id = 1) AND (session_forum_id = 19))

Before: 0.07581s | After: 0.07690s | Elapsed: 0.00109s



Query #29
QUERY PLAN
Seq Scan on phpbb_sessions s (cost=0.00..244.40 rows=1 width=19)
Filter: ((session_time >= 1632431160) AND (session_user_id <> 1) AND (session_forum_id = 19))

Before: 0.07718s | After: 0.07817s | Elapsed: 0.00099s



Query results obtained from the cache

Before: 0.07954s | After: 0.07965s | Elapsed [cache]: 0.00010s | Elapsed [db]: 0.00022s