Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sort (cost=297846.88..297848.90 rows=809 width=68)
- Sort Key: p_1.date_time
- -> Hash Right Join (cost=245374.57..297807.81 rows=809 width=68)
- Hash Cond: (m_1.id = p_1.id)
- -> Hash Join (cost=112212.48..160549.56 rows=142216 width=12)
- 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))))
- -> Hash Join (cost=106082.48..120649.05 rows=1657 width=24)
- Hash Cond: (s_2.tracker_id = s_3.device)
- -> HashAggregate (cost=105743.09..120249.09 rows=200 width=16)
- CTE starts
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16)
- 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))
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16)
- Hash Cond: (o_5.project = p_10.id)
- -> Seq Scan on ee_tracker_ownership o_5 (cost=0.00..54.39 rows=2439 width=24)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_8.id = m_10.project)
- -> Seq Scan on ee_project direct_p_8 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_10.member_user = u_8.id)
- -> Seq Scan on ee_membership m_10 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_8 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_10 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_8.rgt)
- Filter: (lft >= direct_p_8.lft)
- -> Hash (cost=131.89..131.89 rows=1568 width=24)
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24)
- Hash Cond: (o_6.project = p_11.id)
- -> Seq Scan on ee_tracker_ownership o_6 (cost=0.00..54.39 rows=2439 width=32)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_9.id = m_11.project)
- -> Seq Scan on ee_project direct_p_9 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_11.member_user = u_9.id)
- -> Seq Scan on ee_membership m_11 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_9 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_11 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_9.rgt)
- Filter: (lft >= direct_p_9.lft)
- CTE ends
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16)
- 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))
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16)
- Hash Cond: (o_7.project = p_12.id)
- -> Seq Scan on ee_tracker_ownership o_7 (cost=0.00..54.39 rows=2439 width=24)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_10.id = m_12.project)
- -> Seq Scan on ee_project direct_p_10 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_12.member_user = u_10.id)
- -> Seq Scan on ee_membership m_12 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_10 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_12 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_10.rgt)
- Filter: (lft >= direct_p_10.lft)
- -> Hash (cost=131.89..131.89 rows=1568 width=24)
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24)
- Hash Cond: (o_8.project = p_13.id)
- -> Seq Scan on ee_tracker_ownership o_8 (cost=0.00..54.39 rows=2439 width=32)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_11.id = m_13.project)
- -> Seq Scan on ee_project direct_p_11 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_13.member_user = u_11.id)
- -> Seq Scan on ee_membership m_13 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_11 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_13 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_11.rgt)
- Filter: (lft >= direct_p_11.lft)
- -> CTE Scan on starts s_2 (cost=0.00..105110.46 rows=1449 width=16)
- SubPlan 6
- -> Limit (cost=0.00..72.52 rows=1 width=8)
- -> Nested Loop Anti Join (cost=0.00..72.52 rows=1 width=8)
- Join Filter: ((e2_1.e < e_1.e) AND (e_1.tracker_id = e2_1.tracker_id))
- -> CTE Scan on ends e_1 (cost=0.00..36.23 rows=2 width=16)
- Filter: ((s_2.s < e) AND (s_2.tracker_id = tracker_id))
- -> CTE Scan on ends e2_1 (cost=0.00..36.23 rows=2 width=16)
- Filter: ((s_2.s < e) AND (tracker_id = s_2.tracker_id))
- -> Hash (cost=318.67..318.67 rows=1657 width=16)
- -> HashAggregate (cost=285.53..302.10 rows=1657 width=16)
- -> Hash Join (cost=150.48..277.25 rows=1657 width=16)
- Hash Cond: (s_3.device = t_1.id)
- -> Hash Join (cost=52.67..152.52 rows=1657 width=8)
- Hash Cond: (s_3.project = p_2.id)
- -> Seq Scan on ee_track_session s_3 (cost=0.00..74.20 rows=2420 width=16)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p.id = m_2.project)
- -> Seq Scan on ee_project direct_p (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_2.member_user = u.id)
- -> Seq Scan on ee_membership m_2 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_2 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p.rgt)
- Filter: (lft >= direct_p.lft)
- -> Hash (cost=64.58..64.58 rows=2658 width=16)
- -> Seq Scan on ee_tracker t_1 (cost=0.00..64.58 rows=2658 width=16)
- -> Hash (cost=3292.89..3292.89 rows=154489 width=24)
- -> Seq Scan on message m_1 (cost=0.00..3292.89 rows=154489 width=24)
- -> Hash (cost=133151.97..133151.97 rows=809 width=64)
- -> Hash Join (cost=118395.38..133151.97 rows=809 width=64)
- 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))))
- -> Hash Join (cost=106082.48..120649.05 rows=1657 width=24)
- Hash Cond: (s_4.tracker_id = s_5.device)
- -> HashAggregate (cost=105743.09..120249.09 rows=200 width=16)
- CTE starts
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16)
- 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))
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16)
- Hash Cond: (o_1.project = p_6.id)
- -> Seq Scan on ee_tracker_ownership o_1 (cost=0.00..54.39 rows=2439 width=24)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_4.id = m_6.project)
- -> Seq Scan on ee_project direct_p_4 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_6.member_user = u_4.id)
- -> Seq Scan on ee_membership m_6 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_4 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_6 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_4.rgt)
- Filter: (lft >= direct_p_4.lft)
- -> Hash (cost=131.89..131.89 rows=1568 width=24)
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24)
- Hash Cond: (o_2.project = p_7.id)
- -> Seq Scan on ee_tracker_ownership o_2 (cost=0.00..54.39 rows=2439 width=32)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_5.id = m_7.project)
- -> Seq Scan on ee_project direct_p_5 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_7.member_user = u_5.id)
- -> Seq Scan on ee_membership m_7 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_5 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_7 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_5.rgt)
- Filter: (lft >= direct_p_5.lft)
- CTE ends
- -> Hash Anti Join (cost=204.16..310.88 rows=1449 width=16)
- 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))
- -> Hash Join (cost=52.67..131.89 rows=1568 width=16)
- Hash Cond: (o_3.project = p_8.id)
- -> Seq Scan on ee_tracker_ownership o_3 (cost=0.00..54.39 rows=2439 width=24)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_6.id = m_8.project)
- -> Seq Scan on ee_project direct_p_6 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_8.member_user = u_6.id)
- -> Seq Scan on ee_membership m_8 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_6 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_8 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_6.rgt)
- Filter: (lft >= direct_p_6.lft)
- -> Hash (cost=131.89..131.89 rows=1568 width=24)
- -> Hash Join (cost=52.67..131.89 rows=1568 width=24)
- Hash Cond: (o_4.project = p_9.id)
- -> Seq Scan on ee_tracker_ownership o_4 (cost=0.00..54.39 rows=2439 width=32)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_7.id = m_9.project)
- -> Seq Scan on ee_project direct_p_7 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_9.member_user = u_7.id)
- -> Seq Scan on ee_membership m_9 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_7 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_9 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_7.rgt)
- Filter: (lft >= direct_p_7.lft)
- -> CTE Scan on starts s_4 (cost=0.00..105110.46 rows=1449 width=16)
- SubPlan 3
- -> Limit (cost=0.00..72.52 rows=1 width=8)
- -> Nested Loop Anti Join (cost=0.00..72.52 rows=1 width=8)
- Join Filter: ((e2.e < e.e) AND (e.tracker_id = e2.tracker_id))
- -> CTE Scan on ends e (cost=0.00..36.23 rows=2 width=16)
- Filter: ((s_4.s < e) AND (s_4.tracker_id = tracker_id))
- -> CTE Scan on ends e2 (cost=0.00..36.23 rows=2 width=16)
- Filter: ((s_4.s < e) AND (tracker_id = s_4.tracker_id))
- -> Hash (cost=318.67..318.67 rows=1657 width=16)
- -> HashAggregate (cost=285.53..302.10 rows=1657 width=16)
- -> Hash Join (cost=150.48..277.25 rows=1657 width=16)
- Hash Cond: (s_5.device = t_2.id)
- -> Hash Join (cost=52.67..152.52 rows=1657 width=8)
- Hash Cond: (s_5.project = p_3.id)
- -> Seq Scan on ee_track_session s_5 (cost=0.00..74.20 rows=2420 width=16)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_1.id = m_3.project)
- -> Seq Scan on ee_project direct_p_1 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_3.member_user = u_1.id)
- -> Seq Scan on ee_membership m_3 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_1 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_3 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_1.rgt)
- Filter: (lft >= direct_p_1.lft)
- -> Hash (cost=64.58..64.58 rows=2658 width=16)
- -> Seq Scan on ee_tracker t_2 (cost=0.00..64.58 rows=2658 width=16)
- -> Hash (cost=12301.91..12301.91 rows=879 width=76)
- -> Nested Loop (cost=768.53..12301.91 rows=879 width=76)
- -> Hash Join (cost=768.11..8325.53 rows=879 width=64)
- Hash Cond: (p_1.device_info_serial = t.device_info_serial)
- -> Seq Scan on "position" p_1 (cost=0.00..7541.57 rows=1410 width=32)
- 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))
- -> Hash (cost=747.40..747.40 rows=1657 width=40)
- -> Hash Join (cost=576.40..747.40 rows=1657 width=40)
- Hash Cond: (s.individual = i.id)
- -> Hash Join (cost=481.20..627.34 rows=1657 width=40)
- Hash Cond: (s.device = t.id)
- -> Hash Left Join (cost=383.39..502.61 rows=1657 width=32)
- Hash Cond: (s.individual = o.individual)
- -> Hash Join (cost=62.70..162.55 rows=1657 width=32)
- Hash Cond: (s.project = p_4.id)
- -> Seq Scan on ee_track_session s (cost=0.00..74.20 rows=2420 width=32)
- -> Hash (cost=61.92..61.92 rows=63 width=16)
- -> Hash Join (cost=52.67..61.92 rows=63 width=16)
- Hash Cond: (p.id = p_4.id)
- -> Seq Scan on ee_project p (cost=0.00..7.90 rows=190 width=8)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_2.id = m_4.project)
- -> Seq Scan on ee_project direct_p_2 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_4.member_user = u_2.id)
- -> Seq Scan on ee_membership m_4 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_2 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_4 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_2.rgt)
- Filter: (lft >= direct_p_2.lft)
- -> Hash (cost=300.91..300.91 rows=1582 width=8)
- -> Hash Join (cost=186.21..300.91 rows=1582 width=8)
- Hash Cond: (i_1.species = s_1.id)
- -> Hash Join (cost=183.97..276.92 rows=1582 width=16)
- Hash Cond: (i_1.id = o.individual)
- -> Seq Scan on ee_individual i_1 (cost=0.00..65.09 rows=2409 width=16)
- -> Hash (cost=164.19..164.19 rows=1582 width=8)
- -> HashAggregate (cost=132.55..148.37 rows=1582 width=8)
- -> Hash Join (cost=52.67..128.60 rows=1582 width=8)
- Hash Cond: (o.project = p_5.id)
- -> Seq Scan on ee_individual_ownership o (cost=0.00..51.35 rows=2335 width=16)
- -> Hash (cost=51.89..51.89 rows=63 width=8)
- -> HashAggregate (cost=50.63..51.26 rows=63 width=8)
- -> Nested Loop (cost=36.62..50.47 rows=63 width=8)
- -> Hash Join (cost=36.48..45.12 rows=3 width=16)
- Hash Cond: (direct_p_3.id = m_5.project)
- -> Seq Scan on ee_project direct_p_3 (cost=0.00..7.90 rows=190 width=24)
- -> Hash (cost=36.44..36.44 rows=3 width=8)
- -> HashAggregate (cost=36.38..36.41 rows=3 width=8)
- -> Hash Join (cost=14.48..36.37 rows=3 width=8)
- Hash Cond: (m_5.member_user = u_3.id)
- -> Seq Scan on ee_membership m_5 (cost=0.00..19.76 rows=560 width=16)
- Filter: (((status)::text = 'APPROVED'::text) AND ((role)::text = ANY ('{BASE,ADMIN,LEADER}'::text[])))
- -> Hash (cost=14.46..14.46 rows=2 width=8)
- -> Seq Scan on ee_user u_3 (cost=0.00..14.46 rows=2 width=8)
- Filter: ((login_name)::name = "current_user"())
- -> Index Scan using ee_project_rgt_key on ee_project p_5 (cost=0.14..1.57 rows=21 width=24)
- Index Cond: (rgt <= direct_p_3.rgt)
- Filter: (lft >= direct_p_3.lft)
- -> Hash (cost=1.55..1.55 rows=55 width=25)
- -> Seq Scan on ee_species s_1 (cost=0.00..1.55 rows=55 width=25)
- -> Hash (cost=64.58..64.58 rows=2658 width=16)
- -> Seq Scan on ee_tracker t (cost=0.00..64.58 rows=2658 width=16)
- -> Hash (cost=65.09..65.09 rows=2409 width=8)
- -> Seq Scan on ee_individual i (cost=0.00..65.09 rows=2409 width=8)
- -> Index Scan using message_pkey on message m (cost=0.42..4.51 rows=1 width=16)
- Index Cond: (id = p_1.id)
- (354 rows)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement