SQL Report


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

Time spent on postgres queries: 0.04717s | Time spent on PHP: 0.05691s



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

Before: 0.01228s | After: 0.01320s | Elapsed: 0.00092s



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

Before: 0.02358s | After: 0.02388s | Elapsed: 0.00030s



Query results obtained from the cache

Before: 0.02480s | After: 0.02488s | Elapsed [cache]: 0.00008s | Elapsed [db]: 0.00043s



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.02522s | After: 0.02626s | Elapsed: 0.00104s



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.02648s | After: 0.02730s | Elapsed: 0.00081s



Query #6

Before: 0.02736s | After: 0.02838s | Elapsed: 0.00103s



Query #7
QUERY PLAN
Aggregate (cost=2447.46..2447.47 rows=1 width=8)
-> Seq Scan on pin_session (cost=0.00..2447.45 rows=3 width=33)
Filter: ((update_time >= 1586197573) AND (uid = 1))

Before: 0.02889s | After: 0.05199s | Elapsed: 0.02310s



Query results obtained from the cache

Before: 0.05404s | After: 0.05411s | Elapsed [cache]: 0.00007s | Elapsed [db]: 0.00033s



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

Before: 0.05461s | After: 0.05470s | Elapsed: 0.00010s



Query #10
QUERY PLAN
Hash Join (cost=137.11..150.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=137.10..137.10 rows=1 width=271)
-> Seq Scan on phpbb_topics t (cost=0.00..137.10 rows=1 width=271)
Filter: (topic_id = 3577)

Before: 0.05658s | After: 0.05745s | Elapsed: 0.00087s



Query results obtained from the cache

Before: 0.05790s | After: 0.05795s | Elapsed [cache]: 0.00005s | Elapsed [db]: 0.00010s



Query results obtained from the cache

Before: 0.06086s | After: 0.06105s | Elapsed [cache]: 0.00019s | Elapsed [db]: 0.00031s



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 = 3577) AND (post_visibility = 1))

Before: 0.06524s | After: 0.06716s | Elapsed: 0.00192s



Query #14
QUERY PLAN
Nested Loop Left Join (cost=0.28..399.84 rows=1 width=1443)
Join Filter: (z.zebra_id = p.poster_id)
-> Nested Loop (cost=0.28..364.33 rows=1 width=1439)
-> Seq Scan on phpbb_posts p (cost=0.00..356.02 rows=1 width=534)
Filter: (post_id = 5449)
-> Index Scan using phpbb_users_pkey on phpbb_users u (cost=0.28..8.29 rows=1 width=905)
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.06831s | After: 0.07775s | Elapsed: 0.00944s



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.07923s | After: 0.07935s | Elapsed: 0.00012s



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.07992s | After: 0.08025s | Elapsed: 0.00033s



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.08060s | After: 0.08071s | Elapsed: 0.00011s



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.08223s | After: 0.08324s | Elapsed: 0.00102s



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.08798s | After: 0.08822s | Elapsed: 0.00024s



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.08984s | After: 0.09024s | Elapsed: 0.00039s



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.09217s | After: 0.09281s | Elapsed: 0.00064s



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.09412s | After: 0.09499s | Elapsed: 0.00087s



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.09554s | After: 0.09563s | Elapsed: 0.00010s



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

Before: 0.09715s | After: 0.09725s | Elapsed: 0.00010s



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

Affected rows: 1 | Before: 0.09769s | After: 0.09941s | Elapsed: 0.00172s



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 >= 1586204460) AND (session_user_id = 1) AND (session_forum_id = 2))

Before: 0.09987s | After: 0.10082s | Elapsed: 0.00095s



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

Before: 0.10103s | After: 0.10209s | Elapsed: 0.00105s



Query results obtained from the cache

Before: 0.10350s | After: 0.10360s | Elapsed [cache]: 0.00010s | Elapsed [db]: 0.00029s