SQL Report


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

Time spent on postgres queries: 1.12316s | Time spent on PHP: 0.78882s



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

Before: 0.11069s | After: 0.11095s | Elapsed: 0.00025s



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 = 'adfaf6af78318a6197e1f9271ed0df9e'::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.11732s | After: 0.12043s | Elapsed: 0.00311s



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.12181s | After: 0.12211s | Elapsed: 0.00030s



Query results obtained from the cache

Before: 0.12694s | After: 0.12705s | Elapsed [cache]: 0.00011s | Elapsed [db]: 0.00160s



Query #5

Affected rows: 0 | Before: 0.12722s | After: 0.12741s | Elapsed: 0.00019s



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.12777s | After: 0.16895s | Elapsed: 0.04118s



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.16957s | After: 0.17044s | Elapsed: 0.00087s



Query #8

Before: 0.17057s | After: 0.17272s | Elapsed: 0.00215s



Query #9
QUERY PLAN
Aggregate (cost=4557.60..4557.61 rows=1 width=8)
-> Seq Scan on pin_session (cost=0.00..4556.47 rows=452 width=33)
Filter: ((update_time >= 1624282644) AND (uid = 1))

Before: 0.17331s | After: 0.76244s | Elapsed: 0.58913s



Query results obtained from the cache

Before: 0.77223s | After: 0.77370s | Elapsed [cache]: 0.00147s | Elapsed [db]: 0.08710s



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

Before: 0.77882s | After: 0.78058s | Elapsed: 0.00176s



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

Before: 0.79302s | After: 0.87408s | Elapsed: 0.08106s



Query results obtained from the cache

Before: 0.87493s | After: 0.87503s | Elapsed [cache]: 0.00010s | Elapsed [db]: 0.00019s



Query results obtained from the cache

Before: 0.96837s | After: 0.97035s | Elapsed [cache]: 0.00198s | Elapsed [db]: 0.00057s



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

Before: 0.98212s | After: 1.08063s | Elapsed: 0.09851s



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 = 5548)
-> 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.09042s | After: 1.17872s | Elapsed: 0.08831s



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.18222s | After: 1.26727s | Elapsed: 0.08505s



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.27287s | After: 1.27837s | Elapsed: 0.00550s



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.27915s | After: 1.28059s | Elapsed: 0.00144s



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.37142s | After: 1.47527s | Elapsed: 0.10385s



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.67408s | After: 1.67605s | Elapsed: 0.00197s



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.78088s | After: 1.78261s | Elapsed: 0.00173s



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.87507s | After: 1.88380s | Elapsed: 0.00873s



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.89246s | After: 1.89495s | Elapsed: 0.00249s



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.89558s | After: 1.89574s | Elapsed: 0.00017s



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

Before: 1.90064s | After: 1.90235s | Elapsed: 0.00171s



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

Affected rows: 1 | Before: 1.90320s | After: 1.90456s | Elapsed: 0.00135s



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

Before: 1.90536s | After: 1.90661s | Elapsed: 0.00124s



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

Before: 1.90704s | After: 1.90813s | Elapsed: 0.00110s



Query results obtained from the cache

Before: 1.90961s | After: 1.91120s | Elapsed [cache]: 0.00160s | Elapsed [db]: 0.00037s