explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9Iqy

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

Insert on perf_10t_series (cost=13,598.94..14,221.39 rows=2,232 width=96) (actual rows= loops=)

2.          

CTE incoming_data

3. 0.000 0.000 ↓ 0.0

Values Scan on "*VALUES*" (cost=0.00..55.80 rows=4,464 width=20) (actual rows= loops=)

4.          

CTE updated_data

5. 0.000 0.000 ↓ 0.0

Update on perf_10t_series origin_1 (cost=295.23..6,856.79 rows=40 width=115) (actual rows= loops=)

6. 0.000 0.000 ↓ 0.0

Hash Join (cost=295.23..6,856.79 rows=40 width=115) (actual rows= loops=)

  • Hash Cond: (origin_1.start_datetime = incoming_data_1.start_datetime)
7. 0.000 0.000 ↓ 0.0

Nested Loop (cost=150.15..6,688.71 rows=40 width=100) (actual rows= loops=)

  • Join Filter: (origin_1.metadata_id = metadata.id)
8. 0.000 0.000 ↓ 0.0

Seq Scan on generic_metadatas metadata (cost=0.00..2.35 rows=1 width=10) (actual rows= loops=)

  • Filter: (version_datetime <= '2019-06-01 07:51:56.376102+00'::timestamp with time zone)
9. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on perf_10t_series origin_1 (cost=150.15..6,631.96 rows=4,352 width=94) (actual rows= loops=)

  • Recheck Cond: ((key)::text = '2019-06-01 09:51:56.376102 +02:00'::text)
10. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on perf_10t_series_key_start_datetime_idx (cost=0.00..149.06 rows=4,352 width=0) (actual rows= loops=)

  • Index Cond: ((key)::text = '2019-06-01 09:51:56.376102 +02:00'::text)
11. 0.000 0.000 ↓ 0.0

Hash (cost=89.28..89.28 rows=4,464 width=48) (actual rows= loops=)

12. 0.000 0.000 ↓ 0.0

CTE Scan on incoming_data incoming_data_1 (cost=0.00..89.28 rows=4,464 width=48) (actual rows= loops=)

13. 0.000 0.000 ↓ 0.0

Hash Anti Join (cost=6,686.36..7,308.81 rows=2,232 width=96) (actual rows= loops=)

  • Hash Cond: (incoming_data.start_datetime = origin.start_datetime)
14. 0.000 0.000 ↓ 0.0

CTE Scan on incoming_data (cost=0.00..89.28 rows=4,464 width=20) (actual rows= loops=)

15. 0.000 0.000 ↓ 0.0

Hash (cost=6,631.96..6,631.96 rows=4,352 width=8) (actual rows= loops=)

16. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on perf_10t_series origin (cost=150.15..6,631.96 rows=4,352 width=8) (actual rows= loops=)

  • Recheck Cond: ((key)::text = 'B101'::text)
17. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on perf_10t_series_key_start_datetime_idx (cost=0.00..149.06 rows=4,352 width=0) (actual rows= loops=)

  • Index Cond: ((key)::text = 'B101'::text)