explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ElOR

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.032 ↓ 0.0 0 1

Nested Loop (cost=78.09..107.50 rows=1 width=215) (actual time=0.032..0.032 rows=0 loops=1)

  • Join Filter: ((b.knowledge_begin_date <= milestone.knowledge_begin_date) AND (b.knowledge_end_date > milestone.knowledge_begin_date) AND (a.raw_record_id = b.raw_record_id) AND (a.parser_id = b.parser_id))
2.          

CTE union_parser_mode

3. 0.000 0.000 ↓ 0.0 0

Append (cost=23.27..61.62 rows=754 width=17) (never executed)

4. 0.000 0.000 ↓ 0.0 0

HashAggregate (cost=23.27..28.35 rows=508 width=17) (never executed)

  • Group Key: etl_to_cocoa_mapping.etl_parser_id, etl_to_cocoa_mapping.in_cocoa_mode, etl_to_cocoa_mapping.etl_dataset_type_id, etl_to_cocoa_mapping.effective_begin_date, etl_to_cocoa_mapping.effective_end_date
5. 0.000 0.000 ↓ 0.0 0

Seq Scan on etl_to_cocoa_mapping (cost=0.00..16.92 rows=508 width=17) (never executed)

  • Filter: (knowledge_end_date > now())
6. 0.000 0.000 ↓ 0.0 0

HashAggregate (cost=23.27..25.73 rows=246 width=17) (never executed)

  • Group Key: etl_to_cocoa_mapping_1.cocoa_parser_id, etl_to_cocoa_mapping_1.in_cocoa_mode, etl_to_cocoa_mapping_1.etl_dataset_type_id, etl_to_cocoa_mapping_1.effective_begin_date, etl_to_cocoa_mapping_1.effective_end_date
7. 0.000 0.000 ↓ 0.0 0

Seq Scan on etl_to_cocoa_mapping etl_to_cocoa_mapping_1 (cost=0.00..16.92 rows=508 width=17) (never executed)

  • Filter: (knowledge_end_date > now())
8. 0.001 0.032 ↓ 0.0 0 1

Nested Loop (cost=16.47..41.58 rows=1 width=1,497) (actual time=0.032..0.032 rows=0 loops=1)

  • Join Filter: ((c.knowledge_begin_date <= milestone.knowledge_begin_date) AND (c.knowledge_end_date > milestone.knowledge_begin_date))
9. 0.017 0.031 ↓ 0.0 0 1

Hash Right Join (cost=16.47..37.22 rows=1 width=121) (actual time=0.031..0.031 rows=0 loops=1)

  • Hash Cond: ((d.parser_id = a.parser_id) AND (d.etl_dataset_type_id = a.dataset_type_id))
  • Join Filter: ((d.effective_begin_date <= a.effective_begin_date) AND (d.effective_end_date > a.effective_begin_date))
  • Filter: ((d.parser_id IS NULL) OR ((d.parser_id > 0) AND d.in_cocoa_mode) OR ((d.parser_id < 0) AND (NOT d.in_cocoa_mode)))
10. 0.000 0.000 ↓ 0.0 0

CTE Scan on union_parser_mode d (cost=0.00..15.08 rows=754 width=17) (never executed)

11. 0.000 0.014 ↓ 0.0 0 1

Hash (cost=16.45..16.45 rows=1 width=121) (actual time=0.014..0.014 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
12. 0.000 0.014 ↓ 0.0 0 1

Nested Loop (cost=0.00..16.45 rows=1 width=121) (actual time=0.014..0.014 rows=0 loops=1)

13. 0.014 0.014 ↓ 0.0 0 1

Seq Scan on s121coffee_parser_milestone1522241123986_new milestone (cost=0.00..10.75 rows=1 width=28) (actual time=0.014..0.014 rows=0 loops=1)

  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date))
  • Rows Removed by Filter: 2
14. 0.000 0.000 ↓ 0.0 0

Append (cost=0.00..5.68 rows=2 width=109) (never executed)

15. 0.000 0.000 ↓ 0.0 0

Seq Scan on processed_feed_data_keys a (cost=0.00..0.00 rows=1 width=588) (never executed)

  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date) AND (available = 'Y'::bpchar) AND ((bucket_type)::text = 'REGULAR'::text) AND (knowledge_begin_date <= milestone.knowl
16. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_data_keys_date_book_knw_2019_01_1 on processed_feed_data_keys_2019_01_1 a_1 (cost=0.56..5.68 rows=1 width=109) (never executed)

  • Index Cond: ((effective_begin_date = '2019-01-11'::date) AND (dataset_source_id = 1) AND (dataset_type_id = milestone.dataset_type_id) AND (dataset_level_id = milestone.dataset_level_id) AND (book_id
  • Filter: ((available = 'Y'::bpchar) AND ((bucket_type)::text = 'REGULAR'::text) AND (knowledge_begin_date <= milestone.knowledge_begin_date))
17. 0.000 0.000 ↓ 0.0 0

Append (cost=0.00..4.33 rows=2 width=1,396) (never executed)

18. 0.000 0.000 ↓ 0.0 0

Seq Scan on processed_feed_records c (cost=0.00..0.00 rows=1 width=64) (never executed)

  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date) AND (available = 'Y'::bpchar) AND (a.raw_record_id = raw_record_id) AND (a.parser_id = parser_id))
19. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_records_rwid_2019_01_1 on processed_feed_records_2019_01_1 c_1 (cost=0.43..4.33 rows=1 width=1,396) (never executed)

  • Index Cond: (raw_record_id = a.raw_record_id)
  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date) AND (available = 'Y'::bpchar) AND (a.parser_id = parser_id))
20. 0.000 0.000 ↓ 0.0 0

Append (cost=0.00..4.26 rows=2 width=62) (never executed)

21. 0.000 0.000 ↓ 0.0 0

Seq Scan on processed_feed_data b (cost=0.00..0.00 rows=1 width=190) (never executed)

  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date) AND (available = 'Y'::bpchar) AND (c.raw_record_id = raw_record_id) AND (c.parser_id = parser_id))
22. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_feed_data_rwid_2019_01_1 on processed_feed_data_2019_01_1 b_1 (cost=0.43..4.26 rows=1 width=62) (never executed)

  • Index Cond: (raw_record_id = c.raw_record_id)
  • Filter: ((dataset_source_id = 1) AND (effective_begin_date = '2019-01-11'::date) AND (available = 'Y'::bpchar) AND (c.parser_id = parser_id))