explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 5h4

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 251.163 ↑ 5.0 1 1

Finalize GroupAggregate (cost=154,314.75..154,318.69 rows=5 width=14) (actual time=251.163..251.163 rows=1 loops=1)

  • Group Key: trace0_.ontimestatus
2. 0.000 252.494 ↑ 10.0 1 1

Gather Merge (cost=154,314.75..154,318.59 rows=10 width=14) (actual time=251.156..252.494 rows=1 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 0.009 740.316 ↓ 0.0 0 3

Partial GroupAggregate (cost=153,314.72..153,317.41 rows=5 width=14) (actual time=246.772..246.772 rows=0 loops=3)

  • Group Key: trace0_.ontimestatus
4. 0.057 740.307 ↓ 0.0 0 3

Sort (cost=153,314.72..153,315.60 rows=352 width=22) (actual time=246.769..246.769 rows=0 loops=3)

  • Sort Key: trace0_.ontimestatus
  • Sort Method: quicksort Memory: 25kB
5. 0.031 740.250 ↓ 0.0 0 3

Hash Join (cost=235.94..153,299.83 rows=352 width=22) (actual time=233.563..246.750 rows=0 loops=3)

  • Hash Cond: (trace0_.ruleid = rule1_.uuid)
6. 739.650 739.824 ↓ 0.0 0 3

Parallel Index Scan using trace_deliveryrequesteddate_idx on trace trace0_ (cost=110.61..153,168.26 rows=2,359 width=38) (actual time=233.423..246.608 rows=0 loops=3)

  • Index Cond: ((deliveryrequesteddate IS NOT NULL) AND (deliveryrequesteddate <= '2019-12-06 23:59:59'::timestamp without time zone) AND (deliveryrequesteddate >= '2019-06-09 00:00:00'::timestamp without time zone))
  • Filter: ((NOT errorflag) AND (previousruleresultid IS NULL) AND (processingmode = '2'::numeric) AND ((identifierkeyvalues = '2605603110'::text) OR (carrierreferencenumber = '2605603110'::text) OR (hashed SubPlan 1)) AND ((senderduns = ANY ('{BASF_AU01,BASF_AT01,BASF_PL01,BASF_KZ07,202108015,BASF_TR01,BASF_PE01,BASF_0050,BASF_DL01,899244198,BASF_BE05,BASF_DL07,BASF_CN0W,BASF_BR01,BASF_FR01,BASF_US01,315000554i,BASF_DE0E,BASF_EC01,BASF_SG02,BASF_DE0P,BASF_CA01,BASF_DE0M,BASF_CH01,BASF_MX01,315000554,370006132,BASF_VE02,"null",BASF_DE0S,BASF_DE0T,315000554ICO1,315000554ICO2,BASF_ES01,BASF_CL04,BASF_AE07,BASF_ZA01,343224259,BASF_AR01,BASF_UY01,BASF_CO04,BASF_IT01}'::text[])) OR (receiverduns = ANY ('{BASF_AU01,BASF_AT01,BASF_PL01,BASF_KZ07,202108015,BASF_TR01,BASF_PE01,BASF_0050,BASF_DL01,899244198,BASF_BE05,BASF_DL07,BASF_CN0W,BASF_BR01,BASF_FR01,BASF_US01,315000554i,BASF_DE0E,BASF_EC01,BASF_SG02,BASF_DE0P,BASF_CA01,BASF_DE0M,BASF_CH01,BASF_MX01,315000554,370006132,BASF_VE02,"null",BASF_DE0S,BASF_DE0T,315000554ICO1,315000554ICO2,BASF_ES01,BASF_CL04,BASF_AE07,BASF_ZA01,343224259,BASF_AR01,BASF_UY01,BASF_CO04,BASF_IT01}'::text[]))))
  • Rows Removed by Filter: 158828
7.          

SubPlan (forParallel Index Scan)

8. 0.174 0.174 ↓ 0.0 0 3

Index Scan using "type_name_deliveryRequestedDate" on resultitem resultitem2_ (cost=0.56..110.11 rows=24 width=16) (actual time=0.057..0.058 rows=0 loops=3)

  • Index Cond: ((type = ANY ('{poNumber,deliveryNoteNumber,salesOrderNumber}'::text[])) AND (name = '2605603110'::text) AND (deliveryrequesteddate >= '2019-06-09 00:00:00'::timestamp without time zone) AND (deliveryrequesteddate <= '2019-12-06 23:59:59'::timestamp without time zone))
9. 0.056 0.395 ↑ 1.0 96 1

Hash (cost=124.12..124.12 rows=97 width=16) (actual time=0.395..0.395 rows=96 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 13kB
10. 0.339 0.339 ↑ 1.0 96 1

Seq Scan on rule rule1_ (cost=0.00..124.12 rows=97 width=16) (actual time=0.010..0.339 rows=96 loops=1)

  • Filter: ((eventmessagetype)::text = ANY ('{LoadTender,BookingRequest}'::text[]))
  • Rows Removed by Filter: 548
Planning time : 2.535 ms
Execution time : 252.593 ms