SQL Report


Page generated in 0.0779 seconds with 23 queries + 5 queries returning data from cache

Time spent on postgres queries: 0.03749s | Time spent on PHP: 0.04044s



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

Before: 0.00431s | After: 0.00452s | Elapsed: 0.00021s



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

Before: 0.00881s | After: 0.00918s | Elapsed: 0.00037s



Query results obtained from the cache

Before: 0.01041s | After: 0.01049s | Elapsed [cache]: 0.00008s | Elapsed [db]: 0.00023s



Query #4
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.01085s | After: 0.01475s | Elapsed: 0.00390s



Query #5
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.01503s | After: 0.01652s | Elapsed: 0.00149s



Query #6

Before: 0.01663s | After: 0.01785s | Elapsed: 0.00123s



Query #7
QUERY PLAN
Aggregate (cost=1172.88..1172.89 rows=1 width=8)
-> Seq Scan on pin_session (cost=0.00..1172.88 rows=1 width=33)
Filter: ((update_time >= 1573773331) AND (uid = 1))

Before: 0.01863s | After: 0.02709s | Elapsed: 0.00846s



Query results obtained from the cache

Before: 0.02935s | After: 0.02942s | Elapsed [cache]: 0.00006s | Elapsed [db]: 0.00014s



Query #9
QUERY PLAN
Seq Scan on phpbb_points (cost=0.00..18.30 rows=830 width=70)

Before: 0.03004s | After: 0.03024s | Elapsed: 0.00021s



Query #10
QUERY PLAN
Hash Join (cost=135.11..148.42 rows=1 width=573)
Hash Cond: (f.forum_id = t.forum_id)
-> Seq Scan on phpbb_forums f (cost=0.00..12.40 rows=240 width=302)
-> Hash (cost=135.10..135.10 rows=1 width=271)
-> Seq Scan on phpbb_topics t (cost=0.00..135.10 rows=1 width=271)
Filter: (topic_id = 3523)

Before: 0.03395s | After: 0.03583s | Elapsed: 0.00189s



Query results obtained from the cache

Before: 0.03646s | After: 0.03653s | Elapsed [cache]: 0.00006s | Elapsed [db]: 0.00013s



Query results obtained from the cache

Before: 0.03804s | After: 0.03809s | Elapsed [cache]: 0.00006s | Elapsed [db]: 0.00037s



Query #13
QUERY PLAN
Limit (cost=366.64..366.64 rows=1 width=12)
-> Sort (cost=366.64..366.64 rows=1 width=12)
Sort Key: post_time, post_id
-> Seq Scan on phpbb_posts p (cost=0.00..366.63 rows=1 width=12)
Filter: ((topic_id = 3523) AND (post_visibility = 1))

Before: 0.03972s | After: 0.04704s | Elapsed: 0.00731s



Query #14
QUERY PLAN
Nested Loop Left Join (cost=0.28..399.84 rows=1 width=1445)
Join Filter: (z.zebra_id = p.poster_id)
-> Nested Loop (cost=0.28..364.33 rows=1 width=1441)
-> Seq Scan on phpbb_posts p (cost=0.00..356.02 rows=1 width=534)
Filter: (post_id = 5378)
-> Index Scan using phpbb_users_pkey on phpbb_users u (cost=0.28..8.29 rows=1 width=907)
Index Cond: (user_id = p.poster_id)
-> Seq Scan on phpbb_zebra z (cost=0.00..35.50 rows=1 width=8)
Filter: (user_id = 1)

Before: 0.04898s | After: 0.05162s | Elapsed: 0.00264s



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

Before: 0.05352s | After: 0.05366s | Elapsed: 0.00014s



Query #16
QUERY PLAN
Sort (cost=90.78..92.13 rows=540 width=140)
Sort Key: f.field_order
-> Hash Join (cost=24.85..66.27 rows=540 width=140)
Hash Cond: (l.field_id = f.field_id)
-> Seq Scan on phpbb_profile_lang l (cost=0.00..32.62 rows=905 width=17)
Filter: (lang_id = 3)
-> Hash (cost=18.10..18.10 rows=540 width=123)
-> Seq Scan on phpbb_profile_fields f (cost=0.00..18.10 rows=540 width=123)
Filter: ((field_active = 1) AND (field_no_view = 0))

Before: 0.05446s | After: 0.05490s | Elapsed: 0.00044s



Query #17
QUERY PLAN
Seq Scan on phpbb_profile_fields_data (cost=0.00..19.62 rows=1 width=77)
Filter: (user_id = 53)

Before: 0.05544s | After: 0.05559s | Elapsed: 0.00014s



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

Before: 0.05621s | After: 0.05784s | Elapsed: 0.00164s



Query #19
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.06033s | After: 0.06072s | Elapsed: 0.00039s



Query #20
QUERY PLAN
Nested Loop (cost=4.55..9.60 rows=1 width=28)
-> Nested Loop (cost=4.40..9.16 rows=2 width=14)
-> Seq Scan on phpbb_acl_users a (cost=0.00..1.38 rows=1 width=12)
Filter: (user_id = 53)
-> Bitmap Heap Scan on phpbb_acl_roles_data r (cost=4.40..7.62 rows=17 width=10)
Recheck Cond: (role_id = a.auth_role_id)
-> Bitmap Index Scan on phpbb_acl_roles_data_pkey (cost=0.00..4.40 rows=17 width=0)
Index Cond: (role_id = a.auth_role_id)
-> Index Scan using phpbb_acl_options_pkey on phpbb_acl_options ao (cost=0.14..0.19 rows=1 width=14)
Index Cond: (auth_option_id = r.auth_option_id)
Filter: ((auth_option)::text = 'u_readpm'::text)

Before: 0.06234s | After: 0.06292s | Elapsed: 0.00059s



Query #21
QUERY PLAN
Nested Loop (cost=10.19..72.02 rows=1 width=24)
Join Filter: ((a.group_id = ug.group_id) AND ((ug.group_leader <> 1) OR (g.group_skip_auth <> 1)))
-> Hash Join (cost=10.19..31.34 rows=1 width=30)
Hash Cond: (g.group_id = a.group_id)
-> Seq Scan on phpbb_groups g (cost=0.00..18.10 rows=810 width=6)
-> Hash (cost=10.18..10.18 rows=1 width=24)
-> Nested Loop (cost=4.21..10.18 rows=1 width=24)
-> 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_groups a (cost=4.21..7.33 rows=1 width=14)
Recheck Cond: (auth_option_id = ao.auth_option_id)
Filter: (auth_role_id = 0)
-> Bitmap Index Scan on auth_opt_id (cost=0.00..4.21 rows=8 width=0)
Index Cond: (auth_option_id = ao.auth_option_id)
-> Seq Scan on phpbb_user_group ug (cost=0.00..40.60 rows=5 width=10)
Filter: ((user_pending = 0) AND (user_id = 53))

Before: 0.06479s | After: 0.06579s | Elapsed: 0.00100s



Query #22
QUERY PLAN
Hash Join (cost=54.34..80.03 rows=37 width=24)
Hash Cond: (ug.group_id = a.group_id)
-> Hash Join (cost=40.66..65.92 rows=5 width=12)
Hash Cond: (g.group_id = ug.group_id)
Join Filter: ((ug.group_leader <> 1) OR (g.group_skip_auth <> 1))
-> Seq Scan on phpbb_groups g (cost=0.00..18.10 rows=810 width=6)
-> Hash (cost=40.60..40.60 rows=5 width=10)
-> Seq Scan on phpbb_user_group ug (cost=0.00..40.60 rows=5 width=10)
Filter: ((user_pending = 0) AND (user_id = 53))
-> 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.06720s | After: 0.06857s | Elapsed: 0.00137s



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

Before: 0.06893s | After: 0.06905s | Elapsed: 0.00012s



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

Before: 0.07078s | After: 0.07092s | Elapsed: 0.00014s



Query #25
QUERY PLAN
Seq Scan on phpbb_topics (cost=0.00..135.10 rows=1 width=271)
Filter: (topic_id = 3523)

Affected rows: 1 | Before: 0.07156s | After: 0.07355s | Elapsed: 0.00199s



Query #26
QUERY PLAN
Aggregate (cost=245.38..245.39 rows=1 width=8)
-> Seq Scan on phpbb_sessions s (cost=0.00..245.38 rows=1 width=13)
Filter: ((session_time >= 1573780200) AND (session_user_id = 1) AND (session_forum_id = 2))

Before: 0.07410s | After: 0.07510s | Elapsed: 0.00099s



Query #27
QUERY PLAN
Seq Scan on phpbb_sessions s (cost=0.00..245.38 rows=1 width=19)
Filter: ((session_time >= 1573780230) AND (session_user_id <> 1) AND (session_forum_id = 2))

Before: 0.07532s | After: 0.07616s | Elapsed: 0.00084s



Query results obtained from the cache

Before: 0.07738s | After: 0.07750s | Elapsed [cache]: 0.00011s | Elapsed [db]: 0.00021s