Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Sort (cost=297846.88..297848.90 rows=809 width=68) (actual time=2280.284..2280.811 rows=2004 loops=1)
- Sort Key: p_1.date_time
- Sort Method: quicksort Memory: 330kB
- Buffers: shared hit=9825 read=5234 dirtied=1, temp read=1206 written=1194
- -> Hash Right Join (cost=245374.57..297807.81 rows=809 width=68) (actual time=2166.171..2279.322 rows=2004 loops=1)
- Hash Cond: (m_1.id = p_1.id)
- Buffers: shared hit=9822 read=5234 dirtied=1, temp read=1206 written=1194
- -> Hash Join (cost=112212.48..160549.56 rows=142216 width=12) (actual time=1110.865..1186.116 rows=141205 loops=1)
- Hash Cond: (t_1.device_info_serial = m_1.device_info_serial)
- Join Filter: ((m_1.date_time >= s_2.s) AND (m_1.date_time <= ((SubPlan 6))))
- Rows Removed by Join Filter: 16403
- Buffers: shared hit=730 read=1736, temp read=1206 written=1194
- -> Hash Join (cost=106082.48..120649.05 rows=1657 width=24) (actual time=997.904..1000.061 rows=2229 loops=1)
- Hash Cond: (s_2.tracker_id = s_3.device)
- Buffers: shared hit=718
- -> HashAggregate (cost=105743.09..120249.09 rows=200 width=16) (actual time=989.394..990.073 rows=2414 loops=1)
- Buffers: shared hit=528
- CTE starts
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16) (actual time=4.949..9.000 rows=2438 loops=1)
- Hash Cond: (o_5.device = o_6.device)
- Join Filter: ((o_6.start_date < o_5.start_date) AND (o_6.end_date >= o_5.start_date))
- Rows Removed by Join Filter: 2670
- Buffers: shared hit=264
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16) (actual time=0.900..3.127 rows=2483 loops=1)
- Hash Cond: (o_5.project = p_10.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_5 (cost=0.00..54.39 rows=2439 width=24) (actual time=0.004..0.661 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.884..0.884 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.816..0.844 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.579..0.776 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.569..0.609 rows=3 loops=1)
- Hash Cond: (direct_p_8.id = m_10.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_8 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.029 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.538..0.538 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.536..0.537 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.518..0.530 rows=3 loops=1)
- Hash Cond: (m_10.member_user = u_8.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_10 (cost=0.00..19.76 rows=560 width=16) (actual time=0.006..0.238 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.114..0.114 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_8 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.113 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_10 (cost=0.14..1.57 rows=21 width=24) (actual time=0.016..0.036 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_8.rgt)
- Filter: (lft >= direct_p_8.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=131.89..131.89 rows=1568 width=24) (actual time=4.034..4.034 rows=2483 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 136kB
- Buffers: shared hit=132
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24) (actual time=0.898..3.064 rows=2483 loops=1)
- Hash Cond: (o_6.project = p_11.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_6 (cost=0.00..54.39 rows=2439 width=32) (actual time=0.003..0.662 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.882..0.882 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.814..0.842 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.569..0.761 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.560..0.600 rows=3 loops=1)
- Hash Cond: (direct_p_9.id = m_11.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_9 (cost=0.00..7.90 rows=190 width=24) (actual time=0.001..0.032 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.530..0.530 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.527..0.528 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.511..0.523 rows=3 loops=1)
- Hash Cond: (m_11.member_user = u_9.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_11 (cost=0.00..19.76 rows=560 width=16) (actual time=0.005..0.241 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.115..0.115 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_9 (cost=0.00..14.46 rows=2 width=8) (actual time=0.028..0.112 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_11 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.034 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_9.rgt)
- Filter: (lft >= direct_p_9.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- CTE ends
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16) (actual time=4.809..8.628 rows=2420 loops=1)
- Hash Cond: (o_7.device = o_8.device)
- Join Filter: ((o_8.start_date <= o_7.end_date) AND (o_8.end_date > o_7.end_date))
- Rows Removed by Join Filter: 2651
- Buffers: shared hit=264
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16) (actual time=0.898..3.006 rows=2483 loops=1)
- Hash Cond: (o_7.project = p_12.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_7 (cost=0.00..54.39 rows=2439 width=24) (actual time=0.003..0.590 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.884..0.884 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.816..0.846 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.575..0.759 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.566..0.606 rows=3 loops=1)
- Hash Cond: (direct_p_10.id = m_12.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_10 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.026 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.529..0.529 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.527..0.528 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.509..0.522 rows=3 loops=1)
- Hash Cond: (m_12.member_user = u_10.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_12 (cost=0.00..19.76 rows=560 width=16) (actual time=0.006..0.247 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.113..0.113 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_10 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.112 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_12 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.033 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_10.rgt)
- Filter: (lft >= direct_p_10.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=131.89..131.89 rows=1568 width=24) (actual time=3.891..3.891 rows=2483 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 136kB
- Buffers: shared hit=132
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24) (actual time=0.885..3.009 rows=2483 loops=1)
- Hash Cond: (o_8.project = p_13.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_8 (cost=0.00..54.39 rows=2439 width=32) (actual time=0.002..0.625 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.873..0.873 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.806..0.835 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.562..0.766 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.554..0.594 rows=3 loops=1)
- Hash Cond: (direct_p_11.id = m_13.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_11 (cost=0.00..7.90 rows=190 width=24) (actual time=0.001..0.020 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.523..0.523 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.521..0.522 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.505..0.517 rows=3 loops=1)
- Hash Cond: (m_13.member_user = u_11.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_13 (cost=0.00..19.76 rows=560 width=16) (actual time=0.006..0.238 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.113..0.113 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_11 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.112 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_13 (cost=0.14..1.57 rows=21 width=24) (actual time=0.020..0.037 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_11.rgt)
- Filter: (lft >= direct_p_11.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> CTE Scan on starts s_2 (cost=0.00..105110.46 rows=1449 width=16) (actual time=14.763..988.132 rows=2438 loops=1)
- Buffers: shared hit=528
- SubPlan 6
- -> Limit (cost=0.00..72.52 rows=1 width=8) (actual time=0.400..0.400 rows=1 loops=2438)
- Buffers: shared hit=264
- -> Nested Loop Anti Join (cost=0.00..72.52 rows=1 width=8) (actual time=0.399..0.399 rows=1 loops=2438)
- Join Filter: ((e2_1.e < e_1.e) AND (e_1.tracker_id = e2_1.tracker_id))
- Rows Removed by Join Filter: 1
- Buffers: shared hit=264
- -> CTE Scan on ends e_1 (cost=0.00..36.23 rows=2 width=16) (actual time=0.133..0.133 rows=1 loops=2438)
- Filter: ((s_2.s < e) AND (s_2.tracker_id = tracker_id))
- Rows Removed by Filter: 1206
- Buffers: shared hit=235
- -> CTE Scan on ends e2_1 (cost=0.00..36.23 rows=2 width=16) (actual time=0.131..0.265 rows=1 loops=2444)
- Filter: ((s_2.s < e) AND (tracker_id = s_2.tracker_id))
- Rows Removed by Filter: 2417
- Buffers: shared hit=29
- -> Hash (cost=318.67..318.67 rows=1657 width=16) (actual time=8.485..8.485 rows=2193 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 103kB
- Buffers: shared hit=190
- -> HashAggregate (cost=285.53..302.10 rows=1657 width=16) (actual time=7.133..7.720 rows=2193 loops=1)
- Buffers: shared hit=190
- -> Hash Join (cost=150.48..277.25 rows=1657 width=16) (actual time=2.653..6.196 rows=2336 loops=1)
- Hash Cond: (s_3.device = t_1.id)
- Buffers: shared hit=190
- -> Hash Join (cost=52.67..152.52 rows=1657 width=8) (actual time=0.993..3.126 rows=2336 loops=1)
- Hash Cond: (s_3.project = p_2.id)
- Buffers: shared hit=152
- -> Seq Scan on ee_track_session s_3 (cost=0.00..74.20 rows=2420 width=16) (actual time=0.003..0.655 rows=2336 loops=1)
- Buffers: shared hit=50
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.977..0.977 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.908..0.936 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.665..0.865 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.645..0.686 rows=3 loops=1)
- Hash Cond: (direct_p.id = m_2.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p (cost=0.00..7.90 rows=190 width=24) (actual time=0.004..0.037 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.606..0.606 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.602..0.603 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.586..0.597 rows=3 loops=1)
- Hash Cond: (m_2.member_user = u.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_2 (cost=0.00..19.76 rows=560 width=16) (actual time=0.013..0.281 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.152..0.152 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u (cost=0.00..14.46 rows=2 width=8) (actual time=0.048..0.151 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_2 (cost=0.14..1.57 rows=21 width=24) (actual time=0.019..0.039 rows=38 loops=3)
- Index Cond: (rgt <= direct_p.rgt)
- Filter: (lft >= direct_p.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=64.58..64.58 rows=2658 width=16) (actual time=1.646..1.646 rows=2613 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 123kB
- Buffers: shared hit=38
- -> Seq Scan on ee_tracker t_1 (cost=0.00..64.58 rows=2658 width=16) (actual time=0.004..0.760 rows=2613 loops=1)
- Buffers: shared hit=38
- -> Hash (cost=3292.89..3292.89 rows=154489 width=24) (actual time=112.748..112.748 rows=156121 loops=1)
- Buckets: 8192 Batches: 8 (originally 4) Memory Usage: 3073kB
- Buffers: shared hit=12 read=1736, temp written=755
- -> Seq Scan on message m_1 (cost=0.00..3292.89 rows=154489 width=24) (actual time=0.004..52.267 rows=156121 loops=1)
- Buffers: shared hit=12 read=1736
- -> Hash (cost=133151.97..133151.97 rows=809 width=64) (actual time=1054.481..1054.481 rows=2004 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 196kB
- Buffers: shared hit=9089 read=3498 dirtied=1
- -> Hash Join (cost=118395.38..133151.97 rows=809 width=64) (actual time=1049.768..1053.577 rows=2004 loops=1)
- Hash Cond: (t_2.device_info_serial = m.device_info_serial)
- Join Filter: ((m.date_time >= s_4.s) AND (m.date_time <= ((SubPlan 3))))
- Rows Removed by Join Filter: 270
- Buffers: shared hit=9089 read=3498 dirtied=1
- -> Hash Join (cost=106082.48..120649.05 rows=1657 width=24) (actual time=984.999..987.245 rows=2229 loops=1)
- Hash Cond: (s_4.tracker_id = s_5.device)
- Buffers: shared hit=718
- -> HashAggregate (cost=105743.09..120249.09 rows=200 width=16) (actual time=976.657..977.370 rows=2414 loops=1)
- Buffers: shared hit=528
- CTE starts
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16) (actual time=4.950..9.380 rows=2438 loops=1)
- Hash Cond: (o_1.device = o_2.device)
- Join Filter: ((o_2.start_date < o_1.start_date) AND (o_2.end_date >= o_1.start_date))
- Rows Removed by Join Filter: 2670
- Buffers: shared hit=264
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16) (actual time=0.909..3.286 rows=2483 loops=1)
- Hash Cond: (o_1.project = p_6.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_1 (cost=0.00..54.39 rows=2439 width=24) (actual time=0.006..0.765 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.886..0.886 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.819..0.849 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.587..0.776 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.577..0.618 rows=3 loops=1)
- Hash Cond: (direct_p_4.id = m_6.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_4 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.025 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.546..0.546 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.543..0.543 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.527..0.540 rows=3 loops=1)
- Hash Cond: (m_6.member_user = u_4.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_6 (cost=0.00..19.76 rows=560 width=16) (actual time=0.005..0.239 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.115..0.115 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_4 (cost=0.00..14.46 rows=2 width=8) (actual time=0.028..0.114 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_6 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.034 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_4.rgt)
- Filter: (lft >= direct_p_4.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=131.89..131.89 rows=1568 width=24) (actual time=4.028..4.028 rows=2483 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 136kB
- Buffers: shared hit=132
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24) (actual time=0.899..3.138 rows=2483 loops=1)
- Hash Cond: (o_2.project = p_7.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_2 (cost=0.00..54.39 rows=2439 width=32) (actual time=0.002..0.726 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.888..0.888 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.819..0.847 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.587..0.775 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.578..0.619 rows=3 loops=1)
- Hash Cond: (direct_p_5.id = m_7.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_5 (cost=0.00..7.90 rows=190 width=24) (actual time=0.001..0.027 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.546..0.546 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.544..0.545 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.528..0.539 rows=3 loops=1)
- Hash Cond: (m_7.member_user = u_5.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_7 (cost=0.00..19.76 rows=560 width=16) (actual time=0.010..0.258 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.111..0.111 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_5 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.110 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_7 (cost=0.14..1.57 rows=21 width=24) (actual time=0.016..0.033 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_5.rgt)
- Filter: (lft >= direct_p_5.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- CTE ends
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16) (actual time=4.848..8.798 rows=2420 loops=1)
- Hash Cond: (o_3.device = o_4.device)
- Join Filter: ((o_4.start_date <= o_3.end_date) AND (o_4.end_date > o_3.end_date))
- Rows Removed by Join Filter: 2651
- Buffers: shared hit=264
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16) (actual time=0.898..3.055 rows=2483 loops=1)
- Hash Cond: (o_3.project = p_8.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_3 (cost=0.00..54.39 rows=2439 width=24) (actual time=0.002..0.621 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.885..0.885 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.815..0.846 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.583..0.769 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.572..0.612 rows=3 loops=1)
- Hash Cond: (direct_p_6.id = m_8.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_6 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.018 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.541..0.541 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.539..0.540 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.523..0.534 rows=3 loops=1)
- Hash Cond: (m_8.member_user = u_6.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_8 (cost=0.00..19.76 rows=560 width=16) (actual time=0.004..0.233 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.114..0.114 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_6 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.113 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_8 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.033 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_6.rgt)
- Filter: (lft >= direct_p_6.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=131.89..131.89 rows=1568 width=24) (actual time=3.935..3.935 rows=2483 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 136kB
- Buffers: shared hit=132
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24) (actual time=0.897..3.023 rows=2483 loops=1)
- Hash Cond: (o_4.project = p_9.id)
- Buffers: shared hit=132
- -> Seq Scan on ee_tracker_ownership o_4 (cost=0.00..54.39 rows=2439 width=32) (actual time=0.001..0.654 rows=2483 loops=1)
- Buffers: shared hit=30
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.878..0.878 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.811..0.838 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.578..0.767 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.570..0.610 rows=3 loops=1)
- Hash Cond: (direct_p_7.id = m_9.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_7 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.030 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.538..0.538 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.536..0.537 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.520..0.533 rows=3 loops=1)
- Hash Cond: (m_9.member_user = u_7.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_9 (cost=0.00..19.76 rows=560 width=16) (actual time=0.005..0.249 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.114..0.114 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_7 (cost=0.00..14.46 rows=2 width=8) (actual time=0.027..0.111 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_9 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.033 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_7.rgt)
- Filter: (lft >= direct_p_7.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> CTE Scan on starts s_4 (cost=0.00..105110.46 rows=1449 width=16) (actual time=14.911..975.300 rows=2438 loops=1)
- Buffers: shared hit=528
- SubPlan 3
- -> Limit (cost=0.00..72.52 rows=1 width=8) (actual time=0.395..0.395 rows=1 loops=2438)
- Buffers: shared hit=264
- -> Nested Loop Anti Join (cost=0.00..72.52 rows=1 width=8) (actual time=0.394..0.394 rows=1 loops=2438)
- Join Filter: ((e2.e < e.e) AND (e.tracker_id = e2.tracker_id))
- Rows Removed by Join Filter: 1
- Buffers: shared hit=264
- -> CTE Scan on ends e (cost=0.00..36.23 rows=2 width=16) (actual time=0.131..0.131 rows=1 loops=2438)
- Filter: ((s_4.s < e) AND (s_4.tracker_id = tracker_id))
- Rows Removed by Filter: 1206
- Buffers: shared hit=235
- -> CTE Scan on ends e2 (cost=0.00..36.23 rows=2 width=16) (actual time=0.128..0.261 rows=1 loops=2444)
- Filter: ((s_4.s < e) AND (tracker_id = s_4.tracker_id))
- Rows Removed by Filter: 2417
- Buffers: shared hit=29
- -> Hash (cost=318.67..318.67 rows=1657 width=16) (actual time=8.326..8.326 rows=2193 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 103kB
- Buffers: shared hit=190
- -> HashAggregate (cost=285.53..302.10 rows=1657 width=16) (actual time=6.987..7.578 rows=2193 loops=1)
- Buffers: shared hit=190
- -> Hash Join (cost=150.48..277.25 rows=1657 width=16) (actual time=2.554..6.067 rows=2336 loops=1)
- Hash Cond: (s_5.device = t_2.id)
- Buffers: shared hit=190
- -> Hash Join (cost=52.67..152.52 rows=1657 width=8) (actual time=0.914..2.975 rows=2336 loops=1)
- Hash Cond: (s_5.project = p_3.id)
- Buffers: shared hit=152
- -> Seq Scan on ee_track_session s_5 (cost=0.00..74.20 rows=2420 width=16) (actual time=0.002..0.595 rows=2336 loops=1)
- Buffers: shared hit=50
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.902..0.902 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.834..0.861 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.590..0.788 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.580..0.621 rows=3 loops=1)
- Hash Cond: (direct_p_1.id = m_3.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_1 (cost=0.00..7.90 rows=190 width=24) (actual time=0.002..0.037 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.544..0.544 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.541..0.542 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.526..0.538 rows=3 loops=1)
- Hash Cond: (m_3.member_user = u_1.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_3 (cost=0.00..19.76 rows=560 width=16) (actual time=0.006..0.238 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.116..0.116 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_1 (cost=0.00..14.46 rows=2 width=8) (actual time=0.029..0.115 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_3 (cost=0.14..1.57 rows=21 width=24) (actual time=0.017..0.038 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_1.rgt)
- Filter: (lft >= direct_p_1.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=64.58..64.58 rows=2658 width=16) (actual time=1.627..1.627 rows=2613 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 123kB
- Buffers: shared hit=38
- -> Seq Scan on ee_tracker t_2 (cost=0.00..64.58 rows=2658 width=16) (actual time=0.003..0.738 rows=2613 loops=1)
- Buffers: shared hit=38
- -> Hash (cost=12301.91..12301.91 rows=879 width=76) (actual time=64.657..64.657 rows=2008 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 220kB
- Buffers: shared hit=8371 read=3498 dirtied=1
- -> Nested Loop (cost=768.53..12301.91 rows=879 width=76) (actual time=56.053..63.627 rows=2008 loops=1)
- Buffers: shared hit=8371 read=3498 dirtied=1
- -> Hash Join (cost=768.11..8325.53 rows=879 width=64) (actual time=56.031..58.376 rows=2008 loops=1)
- Hash Cond: (p_1.device_info_serial = t.device_info_serial)
- Buffers: shared hit=342 read=3485 dirtied=1
- -> Seq Scan on "position" p_1 (cost=0.00..7541.57 rows=1410 width=32) (actual time=34.271..35.349 rows=1875 loops=1)
- Filter: ((date_time >= '2022-10-01 00:00:00'::timestamp without time zone) AND (date_time < '2022-11-01 14:01:00'::timestamp without time zone))
- Rows Removed by Filter: 272408
- Buffers: shared hit=5 read=3413 dirtied=1
- -> Hash (cost=747.40..747.40 rows=1657 width=40) (actual time=21.737..21.737 rows=2336 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 165kB
- Buffers: shared hit=337 read=72
- -> Hash Join (cost=576.40..747.40 rows=1657 width=40) (actual time=14.130..20.769 rows=2336 loops=1)
- Hash Cond: (s.individual = i.id)
- Buffers: shared hit=337 read=72
- -> Hash Join (cost=481.20..627.34 rows=1657 width=40) (actual time=12.508..17.681 rows=2336 loops=1)
- Hash Cond: (s.device = t.id)
- Buffers: shared hit=335 read=33
- -> Hash Left Join (cost=383.39..502.61 rows=1657 width=32) (actual time=10.778..14.526 rows=2336 loops=1)
- Hash Cond: (s.individual = o.individual)
- Buffers: shared hit=297 read=33
- -> Hash Join (cost=62.70..162.55 rows=1657 width=32) (actual time=1.225..3.489 rows=2336 loops=1)
- Hash Cond: (s.project = p_4.id)
- Buffers: shared hit=153 read=5
- -> Seq Scan on ee_track_session s (cost=0.00..74.20 rows=2420 width=32) (actual time=0.006..0.765 rows=2336 loops=1)
- Buffers: shared hit=50
- -> Hash (cost=61.92..61.92 rows=63 width=16) (actual time=1.205..1.205 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 6kB
- Buffers: shared hit=103 read=5
- -> Hash Join (cost=52.67..61.92 rows=63 width=16) (actual time=1.066..1.161 rows=112 loops=1)
- Hash Cond: (p.id = p_4.id)
- Buffers: shared hit=103 read=5
- -> Seq Scan on ee_project p (cost=0.00..7.90 rows=190 width=8) (actual time=0.007..0.038 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=1.048..1.048 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=97 read=5
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.980..1.008 rows=112 loops=1)
- Buffers: shared hit=97 read=5
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.722..0.928 rows=114 loops=1)
- Buffers: shared hit=97 read=5
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.688..0.731 rows=3 loops=1)
- Hash Cond: (direct_p_2.id = m_4.project)
- Buffers: shared hit=19 read=4
- -> Seq Scan on ee_project direct_p_2 (cost=0.00..7.90 rows=190 width=24) (actual time=0.001..0.044 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.643..0.643 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=13 read=4
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.641..0.642 rows=3 loops=1)
- Buffers: shared hit=13 read=4
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.623..0.636 rows=3 loops=1)
- Hash Cond: (m_4.member_user = u_2.id)
- Buffers: shared hit=13 read=4
- -> Seq Scan on ee_membership m_4 (cost=0.00..19.76 rows=560 width=16) (actual time=0.017..0.302 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.146..0.146 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=4 read=4
- -> Seq Scan on ee_user u_2 (cost=0.00..14.46 rows=2 width=8) (actual time=0.038..0.144 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=4 read=4
- -> Index Scan using ee_project_rgt_key on ee_project p_4 (cost=0.14..1.57 rows=21 width=24) (actual time=0.024..0.049 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_2.rgt)
- Filter: (lft >= direct_p_2.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=78 read=1
- -> Hash (cost=300.91..300.91 rows=1582 width=8) (actual time=9.542..9.542 rows=2303 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 90kB
- Buffers: shared hit=144 read=28
- -> Hash Join (cost=186.21..300.91 rows=1582 width=8) (actual time=5.296..8.727 rows=2303 loops=1)
- Hash Cond: (i_1.species = s_1.id)
- Buffers: shared hit=144 read=28
- -> Hash Join (cost=183.97..276.92 rows=1582 width=16) (actual time=5.246..7.345 rows=2303 loops=1)
- Hash Cond: (i_1.id = o.individual)
- Buffers: shared hit=143 read=28
- -> Seq Scan on ee_individual i_1 (cost=0.00..65.09 rows=2409 width=16) (actual time=0.001..0.617 rows=2310 loops=1)
- Buffers: shared hit=41
- -> Hash (cost=164.19..164.19 rows=1582 width=8) (actual time=5.229..5.229 rows=2303 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 90kB
- Buffers: shared hit=102 read=28
- -> HashAggregate (cost=132.55..148.37 rows=1582 width=8) (actual time=3.855..4.454 rows=2303 loops=1)
- Buffers: shared hit=102 read=28
- -> Hash Join (cost=52.67..128.60 rows=1582 width=8) (actual time=0.915..2.984 rows=2327 loops=1)
- Hash Cond: (o.project = p_5.id)
- Buffers: shared hit=102 read=28
- -> Seq Scan on ee_individual_ownership o (cost=0.00..51.35 rows=2335 width=16) (actual time=0.008..0.678 rows=2327 loops=1)
- Buffers: shared read=28
- -> Hash (cost=51.89..51.89 rows=63 width=8) (actual time=0.897..0.897 rows=112 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 5kB
- Buffers: shared hit=102
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8) (actual time=0.830..0.860 rows=112 loops=1)
- Buffers: shared hit=102
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8) (actual time=0.593..0.781 rows=114 loops=1)
- Buffers: shared hit=102
- -> Hash Join (cost=36.48..45.12 rows=3 width=16) (actual time=0.585..0.625 rows=3 loops=1)
- Hash Cond: (direct_p_3.id = m_5.project)
- Buffers: shared hit=23
- -> Seq Scan on ee_project direct_p_3 (cost=0.00..7.90 rows=190 width=24) (actual time=0.001..0.032 rows=113 loops=1)
- Buffers: shared hit=6
- -> Hash (cost=36.44..36.44 rows=3 width=8) (actual time=0.551..0.551 rows=3 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=17
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8) (actual time=0.548..0.549 rows=3 loops=1)
- Buffers: shared hit=17
- -> Hash Join (cost=14.48..36.37 rows=3 width=8) (actual time=0.527..0.539 rows=3 loops=1)
- Hash Cond: (m_5.member_user = u_3.id)
- Buffers: shared hit=17
- -> Seq Scan on ee_membership m_5 (cost=0.00..19.76 rows=560 width=16) (actual time=0.004..0.261 rows=578 loops=1)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- Rows Removed by Filter: 90
- Buffers: shared hit=9
- -> Hash (cost=14.46..14.46 rows=2 width=8) (actual time=0.113..0.113 rows=1 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 1kB
- Buffers: shared hit=8
- -> Seq Scan on ee_user u_3 (cost=0.00..14.46 rows=2 width=8) (actual time=0.028..0.113 rows=1 loops=1)
- Filter: ((login_name)::name = "current_user"())
- Rows Removed by Filter: 372
- Buffers: shared hit=8
- -> Index Scan using ee_project_rgt_key on ee_project p_5 (cost=0.14..1.57 rows=21 width=24) (actual time=0.016..0.032 rows=38 loops=3)
- Index Cond: (rgt <= direct_p_3.rgt)
- Filter: (lft >= direct_p_3.lft)
- Rows Removed by Filter: 72
- Buffers: shared hit=79
- -> Hash (cost=1.55..1.55 rows=55 width=25) (actual time=0.039..0.039 rows=55 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 4kB
- Buffers: shared hit=1
- -> Seq Scan on ee_species s_1 (cost=0.00..1.55 rows=55 width=25) (actual time=0.002..0.015 rows=55 loops=1)
- Buffers: shared hit=1
- -> Hash (cost=64.58..64.58 rows=2658 width=16) (actual time=1.719..1.719 rows=2613 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 123kB
- Buffers: shared hit=38
- -> Seq Scan on ee_tracker t (cost=0.00..64.58 rows=2658 width=16) (actual time=0.006..0.810 rows=2613 loops=1)
- Buffers: shared hit=38
- -> Hash (cost=65.09..65.09 rows=2409 width=8) (actual time=1.607..1.607 rows=2310 loops=1)
- Buckets: 1024 Batches: 1 Memory Usage: 91kB
- Buffers: shared hit=2 read=39
- -> Seq Scan on ee_individual i (cost=0.00..65.09 rows=2409 width=8) (actual time=0.004..0.787 rows=2310 loops=1)
- Buffers: shared hit=2 read=39
- -> Index Scan using message_pkey on message m (cost=0.42..4.51 rows=1 width=16) (actual time=0.001..0.001 rows=1 loops=2008)
- Index Cond: (id = p_1.id)
- Buffers: shared hit=8029 read=13
- Total runtime: 2282.807 ms
- (690 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement