SQL Report


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

Time spent on postgres queries: 0.80276s | Time spent on PHP: 0.37459s



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

Before: 0.05318s | After: 0.05345s | Elapsed: 0.00027s



Query #2
QUERY PLAN
Nested Loop (cost=0.69..16.73 rows=1 width=1461)
-> Index Scan using pin_session_pkey on pin_session s (cost=0.41..8.43 rows=1 width=527)
Index Cond: (session_id = '24d3da7887778c3d3b1e4a3abbef7076'::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.20369s | After: 0.20705s | Elapsed: 0.00337s



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.21136s | After: 0.21168s | Elapsed: 0.00032s



Query results obtained from the cache

Before: 0.21269s | After: 0.21504s | Elapsed [cache]: 0.00235s | Elapsed [db]: 0.00030s



Query #5

Affected rows: 0 | Before: 0.21521s | After: 0.21549s | Elapsed: 0.00027s



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.21583s | After: 0.30656s | Elapsed: 0.09073s



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.30710s | After: 0.30808s | Elapsed: 0.00098s



Query #8

Before: 0.30818s | After: 0.31504s | Elapsed: 0.00686s



Query #9
QUERY PLAN
Aggregate (cost=4557.31..4557.32 rows=1 width=8)
-> Seq Scan on pin_session (cost=0.00..4556.47 rows=336 width=33)
Filter: ((update_time >= 1624283284) AND (uid = 1))

Before: 0.31579s | After: 0.90515s | Elapsed: 0.58936s



Query results obtained from the cache

Before: 0.91725s | After: 0.99968s | Elapsed [cache]: 0.08242s | Elapsed [db]: 0.00837s



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

Before: 1.00278s | After: 1.00296s | Elapsed: 0.00019s



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 = 3621)

Before: 1.00772s | After: 1.09121s | Elapsed: 0.08349s



Query results obtained from the cache

Before: 1.09212s | After: 1.09220s | Elapsed [cache]: 0.00008s | Elapsed [db]: 0.00140s



Query results obtained from the cache

Before: 1.10597s | After: 1.10729s | Elapsed [cache]: 0.00132s | Elapsed [db]: 0.00049s



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

Before: 1.10965s | After: 1.11416s | Elapsed: 0.00451s



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 = 5530)
-> 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: 1.11687s | After: 1.12217s | Elapsed: 0.00531s



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: 1.12989s | After: 1.13013s | Elapsed: 0.00024s



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: 1.13116s | After: 1.13783s | Elapsed: 0.00668s



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: 1.13851s | After: 1.13883s | Elapsed: 0.00032s



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: 1.14244s | After: 1.14465s | Elapsed: 0.00221s



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: 1.14843s | After: 1.14890s | Elapsed: 0.00048s



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: 1.15007s | After: 1.15057s | Elapsed: 0.00050s



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: 1.15354s | After: 1.15460s | Elapsed: 0.00107s



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: 1.15818s | After: 1.15959s | Elapsed: 0.00141s



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: 1.16006s | After: 1.16019s | Elapsed: 0.00013s



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

Before: 1.16748s | After: 1.16782s | Elapsed: 0.00035s



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 = 3621)

Affected rows: 1 | Before: 1.16850s | After: 1.16979s | Elapsed: 0.00130s



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

Before: 1.17093s | After: 1.17232s | Elapsed: 0.00139s



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

Before: 1.17276s | After: 1.17382s | Elapsed: 0.00106s



Query results obtained from the cache

Before: 1.17522s | After: 1.17669s | Elapsed [cache]: 0.00147s | Elapsed [db]: 0.00030s