Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nested Loop (cost=5240.57..5375338.20 rows=43 width=8) (actual time=501753.564..501753.564 rows=0 loops=1)
- -> Hash Left Join (cost=5240.15..5375217.21 rows=43 width=8) (actual time=501753.563..501753.564 rows=0 loops=1)
- Hash Cond: (checkpoint3_.resultindicator = resultindi4_.version_meta_id)
- Filter: (((resultindi1_.fpresultsexecution IS NOT NULL) AND (SubPlan 1)) OR ((resultindi1_.fpresultsexecution IS NULL) AND (SubPlan 2) AND (resultindi1_.event IS NOT NULL) AND (events2_.checkpoint IS NOT NULL) AND (((checkpoint3_.result IS NOT NULL) AND (SubPlan 3)) OR ((checkpoint3_.resultindicator IS NOT NULL) AND (resultindi4_.result IS NOT NULL) AND (SubPlan 4)))))
- Rows Removed by Filter: 1549
- -> Nested Loop Left Join (cost=1.43..5369241.07 rows=113 width=64) (actual time=631.544..493387.621 rows=1549 loops=1)
- -> Nested Loop Left Join (cost=1.00..5365662.81 rows=113 width=48) (actual time=620.950..480282.097 rows=1549 loops=1)
- -> Nested Loop (cost=0.72..5363895.54 rows=113 width=40) (actual time=6.562..464184.322 rows=1549 loops=1)
- -> Nested Loop (cost=0.29..5362947.13 rows=113 width=32) (actual time=4.302..454432.985 rows=1549 loops=1)
- -> Seq Scan on eventrisks eventrisks0_ (cost=0.00..130.46 rows=8445 width=16) (actual time=0.026..22.721 rows=8445 loops=1)
- Filter: (resultindicatoreventexecution IS NOT NULL)
- Rows Removed by Filter: 1
- -> Index Scan using public_resultindicatoreventexecution_not_del_version_period_ran on resultindicatoreventexecution resultindi1_ (cost=0.29..635.02 rows=1 width=32) (actual time=53.776..53.805 rows=0 loops=8445)
- Index Cond: (version_meta_id = eventrisks0_.resultindicatoreventexecution)
- Filter: ((tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())) AND (((fpresultsexecution IS NOT NULL) AND (SubPlan 1)) OR ((fpresultsexecution IS NULL) AND (event IS NOT NULL))))
- Rows Removed by Filter: 4
- SubPlan 1
- -> Nested Loop (cost=9.51..157.20 rows=1 width=0) (actual time=64.468..64.468 rows=0 loops=6896)
- -> Nested Loop (cost=9.37..156.89 rows=1 width=8) (actual time=53.256..64.458 rows=1 loops=6896)
- -> Nested Loop (cost=9.09..132.46 rows=1 width=8) (actual time=51.722..62.316 rows=1 loops=6896)
- -> Bitmap Heap Scan on fpresultsexecution fpresultse5_ (cost=8.66..47.84 rows=10 width=16) (actual time=34.029..34.984 rows=9 loops=6896)
- Recheck Cond: ((version_meta_id = resultindi1_.fpresultsexecution) OR (version_meta_id IS NULL))
- Filter: ((version_meta_id = resultindi1_.fpresultsexecution) OR ((version_meta_id IS NULL) AND (resultindi1_.fpresultsexecution IS NULL)))
- Heap Blocks: exact=51820
- -> BitmapOr (cost=8.66..8.66 rows=10 width=0) (actual time=33.723..33.723 rows=0 loops=6896)
- -> Bitmap Index Scan on public_fpresultsexecution_version_period_range_idx (cost=0.00..4.36 rows=10 width=0) (actual time=0.030..0.030 rows=9 loops=6896)
- Index Cond: (version_meta_id = resultindi1_.fpresultsexecution)
- -> Bitmap Index Scan on public_fpresultsexecution_version_period_range_idx (cost=0.00..4.29 rows=1 width=0) (actual time=33.690..33.690 rows=0 loops=6896)
- Index Cond: (version_meta_id IS NULL)
- -> Index Scan using fpresultexecution_pkey on fpresultexecution fpresultse5_1_ (cost=0.43..8.46 rows=1 width=8) (actual time=2.879..2.879 rows=0 loops=65407)
- Index Cond: (id = fpresultse5_.id)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 1
- -> Index Scan using public_results_version_period_range_idx on results results6_ (cost=0.28..24.42 rows=1 width=16) (actual time=1.528..2.135 rows=1 loops=6896)
- Index Cond: (version_meta_id = fpresultse5_.result)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 4
- -> Index Scan using public_tasks_not_del_version_period_range_idx on tasks tasks7_ (cost=0.14..0.30 rows=1 width=8) (actual time=0.005..0.005 rows=0 loops=6896)
- Index Cond: (version_meta_id = results6_.task)
- Filter: ((projectversion = 2135) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 0
- -> Index Scan using fpresultexecution_pkey on fpresultexecution resultindi1_1_ (cost=0.43..8.39 rows=1 width=24) (actual time=6.289..6.289 rows=1 loops=1549)
- Index Cond: (id = resultindi1_.id)
- -> Index Scan using public_events_not_del_version_period_range_idx on events events2_ (cost=0.29..15.63 rows=1 width=16) (actual time=6.734..10.386 rows=1 loops=1549)
- Index Cond: (resultindi1_.event = version_meta_id)
- Filter: (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp()))
- Rows Removed by Filter: 1
- -> Index Scan using public_checkpoints_version_period_idx on checkpoints checkpoint3_ (cost=0.43..31.66 rows=1 width=24) (actual time=8.449..8.455 rows=1 loops=1549)
- Index Cond: (events2_.checkpoint = version_meta_id)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 3
- -> Hash (cost=5230.81..5230.81 rows=633 width=16) (actual time=1171.924..1171.924 rows=81183 loops=1)
- Buckets: 131072 (originally 1024) Batches: 1 (originally 1) Memory Usage: 4830kB
- -> Gather (cost=1000.00..5230.81 rows=633 width=16) (actual time=2.127..1149.638 rows=81183 loops=1)
- Workers Planned: 1
- Workers Launched: 1
- -> Parallel Seq Scan on resultindicators resultindi4_ (cost=0.00..4167.51 rows=372 width=16) (actual time=13.890..1124.946 rows=40592 loops=2)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 31552
- SubPlan 2
- -> Nested Loop (cost=12.16..217.47 rows=1 width=0) (actual time=3.368..3.368 rows=1 loops=1549)
- -> Nested Loop (cost=11.73..210.11 rows=2 width=8) (actual time=0.117..0.641 rows=164 loops=1549)
- -> Nested Loop (cost=8.59..151.59 rows=1 width=8) (actual time=0.087..0.207 rows=6 loops=1549)
- -> Bitmap Heap Scan on tasks tasks10_ (cost=4.19..18.21 rows=1 width=8) (actual time=0.024..0.033 rows=3 loops=1549)
- Recheck Cond: (projectversion = 2135)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Heap Blocks: exact=3085
- -> Bitmap Index Scan on ind_1677fc3667886b5199de8078078d04b4_simple (cost=0.00..4.19 rows=6 width=0) (actual time=0.016..0.016 rows=6 loops=1549)
- Index Cond: (projectversion = 2135)
- -> Bitmap Heap Scan on results results9_ (cost=4.40..133.37 rows=1 width=16) (actual time=0.049..0.060 rows=2 loops=4107)
- Recheck Cond: ((task = tasks10_.version_meta_id) AND (NOT version_is_deleted))
- Filter: (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp()))
- Rows Removed by Filter: 6
- Heap Blocks: exact=28196
- -> Bitmap Index Scan on ind_1fde84286c8d4905bd5a463b4ed1b673 (cost=0.00..4.39 rows=33 width=0) (actual time=0.028..0.028 rows=8 loops=4107)
- Index Cond: (task = tasks10_.version_meta_id)
- -> Bitmap Heap Scan on fpresultsexecution fpresultse8_ (cost=3.14..58.10 rows=42 width=16) (actual time=0.013..0.066 rows=28 loops=9223)
- Recheck Cond: (result = results9_.version_meta_id)
- Heap Blocks: exact=194977
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..3.13 rows=42 width=0) (actual time=0.007..0.007 rows=30 loops=9223)
- Index Cond: (result = results9_.version_meta_id)
- -> Index Scan using fpresultexecution_pkey on fpresultexecution fpresultse8_1_ (cost=0.43..3.67 rows=1 width=8) (actual time=0.016..0.016 rows=0 loops=253744)
- Index Cond: (id = fpresultse8_.id)
- Filter: ((NOT version_is_deleted) AND ((year = resultindi1_1_.year) OR ((year IS NULL) AND (resultindi1_1_.year IS NULL))) AND ((resultindi1_1_.month = month) OR ((resultindi1_1_.month IS NULL) AND (month IS NULL))) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Rows Removed by Filter: 1
- SubPlan 3
- -> Nested Loop (cost=22.78..177.84 rows=1 width=0) (actual time=1.336..1.336 rows=0 loops=1038)
- -> Nested Loop (cost=22.35..169.38 rows=1 width=8) (actual time=1.328..1.328 rows=0 loops=1038)
- -> Nested Loop (cost=8.59..151.59 rows=1 width=8) (actual time=0.049..0.321 rows=16 loops=1038)
- -> Bitmap Heap Scan on tasks tasks13_ (cost=4.19..18.21 rows=1 width=8) (actual time=0.012..0.029 rows=6 loops=1038)
- Recheck Cond: (projectversion = 2135)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Heap Blocks: exact=4152
- -> Bitmap Index Scan on ind_1677fc3667886b5199de8078078d04b4_simple (cost=0.00..4.19 rows=6 width=0) (actual time=0.007..0.007 rows=6 loops=1038)
- Index Cond: (projectversion = 2135)
- -> Bitmap Heap Scan on results results12_ (cost=4.40..133.37 rows=1 width=16) (actual time=0.035..0.046 rows=3 loops=6228)
- Recheck Cond: ((task = tasks13_.version_meta_id) AND (NOT version_is_deleted))
- Filter: (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp()))
- Rows Removed by Filter: 7
- Heap Blocks: exact=48786
- -> Bitmap Index Scan on ind_1fde84286c8d4905bd5a463b4ed1b673 (cost=0.00..4.39 rows=33 width=0) (actual time=0.020..0.020 rows=10 loops=6228)
- Index Cond: (task = tasks13_.version_meta_id)
- -> Bitmap Heap Scan on fpresultsexecution fpresultse11_ (cost=13.76..17.77 rows=1 width=16) (actual time=0.062..0.062 rows=0 loops=16608)
- Recheck Cond: ((result = results12_.version_meta_id) AND ((result = checkpoint3_.result) OR (result IS NULL)))
- Filter: ((result = checkpoint3_.result) OR ((result IS NULL) AND (checkpoint3_.result IS NULL)))
- -> BitmapAnd (cost=13.76..13.76 rows=1 width=0) (actual time=0.060..0.060 rows=0 loops=16608)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..3.13 rows=42 width=0) (actual time=0.004..0.004 rows=29 loops=16608)
- Index Cond: (result = results12_.version_meta_id)
- -> BitmapOr (cost=10.38..10.38 rows=200 width=0) (actual time=0.058..0.058 rows=0 loops=15570)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..4.74 rows=42 width=0) (actual time=0.051..0.051 rows=52 loops=15570)
- Index Cond: (result = checkpoint3_.result)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..5.62 rows=159 width=0) (actual time=0.006..0.006 rows=140 loops=15570)
- Index Cond: (result IS NULL)
- -> Index Scan using fpresultexecution_pkey on fpresultexecution fpresultse11_1_ (cost=0.43..8.46 rows=1 width=8) (never executed)
- Index Cond: (id = fpresultse11_.id)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- SubPlan 4
- -> Nested Loop (cost=22.78..177.84 rows=1 width=0) (actual time=0.529..0.529 rows=0 loops=1038)
- -> Nested Loop (cost=22.35..169.38 rows=1 width=8) (actual time=0.524..0.524 rows=0 loops=1038)
- -> Nested Loop (cost=8.59..151.59 rows=1 width=8) (actual time=0.044..0.244 rows=16 loops=1038)
- -> Bitmap Heap Scan on tasks tasks16_ (cost=4.19..18.21 rows=1 width=8) (actual time=0.011..0.022 rows=6 loops=1038)
- Recheck Cond: (projectversion = 2135)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- Heap Blocks: exact=4152
- -> Bitmap Index Scan on ind_1677fc3667886b5199de8078078d04b4_simple (cost=0.00..4.19 rows=6 width=0) (actual time=0.007..0.007 rows=6 loops=1038)
- Index Cond: (projectversion = 2135)
- -> Bitmap Heap Scan on results results15_ (cost=4.40..133.37 rows=1 width=16) (actual time=0.027..0.035 rows=3 loops=6228)
- Recheck Cond: ((task = tasks16_.version_meta_id) AND (NOT version_is_deleted))
- Filter: (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp()))
- Rows Removed by Filter: 7
- Heap Blocks: exact=48786
- -> Bitmap Index Scan on ind_1fde84286c8d4905bd5a463b4ed1b673 (cost=0.00..4.39 rows=33 width=0) (actual time=0.017..0.017 rows=10 loops=6228)
- Index Cond: (task = tasks16_.version_meta_id)
- -> Bitmap Heap Scan on fpresultsexecution fpresultse14_ (cost=13.76..17.77 rows=1 width=16) (actual time=0.016..0.016 rows=0 loops=16608)
- Recheck Cond: ((result = results15_.version_meta_id) AND ((result = resultindi4_.result) OR (result IS NULL)))
- Filter: ((result = resultindi4_.result) OR ((result IS NULL) AND (resultindi4_.result IS NULL)))
- -> BitmapAnd (cost=13.76..13.76 rows=1 width=0) (actual time=0.015..0.015 rows=0 loops=16608)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..3.13 rows=42 width=0) (actual time=0.004..0.004 rows=29 loops=16608)
- Index Cond: (result = results15_.version_meta_id)
- -> BitmapOr (cost=10.38..10.38 rows=200 width=0) (actual time=0.010..0.010 rows=0 loops=15570)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..4.74 rows=42 width=0) (actual time=0.004..0.004 rows=52 loops=15570)
- Index Cond: (result = resultindi4_.result)
- -> Bitmap Index Scan on ind_46c4ca8d6d20616dff3de52e442f8921_simple (cost=0.00..5.62 rows=159 width=0) (actual time=0.006..0.006 rows=140 loops=15570)
- Index Cond: (result IS NULL)
- -> Index Scan using fpresultexecution_pkey on fpresultexecution fpresultse14_1_ (cost=0.43..8.46 rows=1 width=8) (never executed)
- Index Cond: (id = fpresultse14_.id)
- Filter: ((NOT version_is_deleted) AND (tsrange(version_actual_period_start, version_actual_period_end, '[]'::text) @> timezone('utc'::text, clock_timestamp())))
- -> Index Only Scan using projectrisks_pkey on projectrisks eventrisks0_1_ (cost=0.42..2.81 rows=1 width=8) (never executed)
- Index Cond: (id = eventrisks0_.id)
- Heap Fetches: 0
- Planning time: 3170.976 ms
- Execution time: 501759.987 ms
Advertisement
Add Comment
Please, Sign In to add comment