explain.depesz.com

PostgreSQL's explain analyze made readable

Result: sDMk

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

XN Window (cost=1,541,008,581,475.09..1,572,408,247,324.46 rows=1,141,806,030,886 width=152) (actual rows= loops=)

  • Partition: s.aeic, s.kpi_id
  • Order: s.serie_ts, w.tag_timestamp_utc
2. 0.000 0.000 ↓ 0.0

XN Sort (cost=1,541,008,581,475.09..1,543,863,096,552.31 rows=1,141,806,030,886 width=152) (actual rows= loops=)

  • Sort Key: s.aeic, s.kpi_id, s.serie_ts, w.tag_timestamp_utc
3. 0.000 0.000 ↓ 0.0

XN Network (cost=3,149.28..312,336,491,623.62 rows=1,141,806,030,886 width=152) (actual rows= loops=)

  • Distribute
4. 0.000 0.000 ↓ 0.0

XN Hash Join DS_DIST_ALL_NONE (cost=3,149.28..312,336,491,623.62 rows=1,141,806,030,886 width=152) (actual rows= loops=)

  • Hash Cond: ((("outer".tag_name)::text = ("inner".tag_name)::text) AND (("outer"."datasource")::text = ("inner"."datasource")::text))
  • Remarks: Derives subplan 0
5. 0.000 0.000 ↓ 0.0

XN Partition Loop (cost=0.00..550,000,020.00 rows=10,000,000,000 width=307) (actual rows= loops=)

6. 0.000 0.000 ↓ 0.0

XN Seq Scan PartitionInfo of ida_eap_prd_tbl_hist.pdc_snsr_wts w (cost=0.00..20.00 rows=1 width=63) (actual rows= loops=)

  • Filter: ((("month")::text = '01'::text) AND (("year")::double precision = 2019::double precision) AND (subplan 0: (("datasource")::text = ($3)::text)))
7. 0.000 0.000 ↓ 0.0

XN S3 Query Scan w (cost=0.00..275,000,000.00 rows=10,000,000,000 width=244) (actual rows= loops=)

8. 0.000 0.000 ↓ 0.0

S3 Seq Scan ida_eap_prd_tbl_hist.pdc_snsr_wts w location:"s3://den-prd-fra-mosaic-archive/ORC/wts" format:ORC_FILE (cost=0.00..175,000,000.00 rows=10,000,000,000 width=244) (actual rows= loops=)

  • Filter: ((tag_timestamp_utc < '2019-01-10 00:00:00'::timestamp without time zone) AND (tag_timestamp_utc >= '2019-01-09 00:00:00'::timestamp without time zone) AND (status = true))
9. 0.000 0.000 ↓ 0.0

XN Hash (cost=2,099.52..2,099.52 rows=209,952 width=54) (actual rows= loops=)

10. 0.000 0.000 ↓ 0.0

XN Seq Scan on dim_series_1 s (cost=0.00..2,099.52 rows=209,952 width=54) (actual rows= loops=)