explain.depesz.com

PostgreSQL's explain analyze made readable

Result: w4DJ

Settings
# exclusive inclusive rows x rows loops node
1. 0.121 6.403 ↑ 2.7 261 1

Sort (cost=1,924.16..1,925.92 rows=702 width=94) (actual time=6.399..6.403 rows=261 loops=1)

  • Sort Key: "J_measrvsn".meas
  • Sort Method: quicksort Memory: 61kB
2.          

CTE jci

3. 1.423 1.423 ↑ 1.0 806 1

Seq Scan on "J_ccdainfo" (cost=0.00..357.55 rows=806 width=8) (actual time=1.285..1.423 rows=806 loops=1)

  • Filter: (("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone) AND (ccda = 88))
  • Rows Removed by Filter: 14231
4. 0.043 6.282 ↑ 2.7 261 1

Hash Left Join (cost=873.70..1,533.42 rows=702 width=94) (actual time=4.674..6.282 rows=261 loops=1)

  • Hash Cond: ("J_meascd".code = "F_labccd_weight".id)
5. 0.130 6.231 ↑ 1.8 261 1

Nested Loop Left Join (cost=851.76..1,484.78 rows=463 width=58) (actual time=4.661..6.231 rows=261 loops=1)

6. 0.113 5.840 ↑ 1.8 261 1

Nested Loop Left Join (cost=851.47..1,332.09 rows=463 width=54) (actual time=4.653..5.840 rows=261 loops=1)

7. 0.124 5.466 ↑ 1.8 261 1

Nested Loop (cost=851.19..1,178.46 rows=463 width=46) (actual time=4.649..5.466 rows=261 loops=1)

8. 0.142 5.081 ↑ 1.8 261 1

Nested Loop (cost=850.90..1,023.28 rows=463 width=32) (actual time=4.645..5.081 rows=261 loops=1)

9. 0.044 4.678 ↑ 1.8 261 1

Hash Right Join (cost=850.62..869.34 rows=465 width=40) (actual time=4.639..4.678 rows=261 loops=1)

  • Hash Cond: ("F_measure_datehigh".id = "J_measrvsn".meas)
10. 0.002 0.002 ↓ 0.0 0 1

Index Scan using "UF_measure_datehigh" on "F_measure_datehigh" (cost=0.15..17.62 rows=307 width=12) (actual time=0.002..0.002 rows=0 loops=1)

  • Index Cond: ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone)
11. 0.056 4.632 ↑ 1.8 261 1

Hash (cost=844.65..844.65 rows=465 width=32) (actual time=4.632..4.632 rows=261 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 25kB
12. 0.068 4.576 ↑ 1.8 261 1

Nested Loop (cost=480.57..844.65 rows=465 width=32) (actual time=4.177..4.576 rows=261 loops=1)

13. 0.505 4.247 ↑ 1.8 261 1

Hash Join (cost=480.29..690.89 rows=465 width=24) (actual time=4.171..4.247 rows=261 loops=1)

  • Hash Cond: ("F_msrrvsn_units".id = "J_msrrvsnii".revision)
14. 0.871 0.871 ↑ 1.0 7,995 1

Seq Scan on "F_msrrvsn_units" (cost=0.00..175.28 rows=8,182 width=8) (actual time=0.010..0.871 rows=7,995 loops=1)

  • Filter: ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone)
15. 0.131 2.871 ↑ 1.0 793 1

Hash (cost=470.21..470.21 rows=806 width=16) (actual time=2.871..2.871 rows=793 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 46kB
16. 0.374 2.740 ↑ 1.0 793 1

Nested Loop (cost=0.29..470.21 rows=806 width=16) (actual time=1.317..2.740 rows=793 loops=1)

17. 1.560 1.560 ↑ 1.0 806 1

CTE Scan on jci (cost=0.00..16.12 rows=806 width=8) (actual time=1.287..1.560 rows=806 loops=1)

18. 0.806 0.806 ↑ 1.0 1 806

Index Scan using optimize2 on "J_msrrvsnii" (cost=0.29..0.55 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=806)

  • Index Cond: ((info = jci.info) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
19. 0.261 0.261 ↑ 1.0 1 261

Index Scan using "PJ_measrvsn" on "J_measrvsn" (cost=0.29..0.32 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=261)

  • Index Cond: ((rvsn = "J_msrrvsnii".revision) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
20. 0.261 0.261 ↑ 1.0 1 261

Index Scan using "QF_msrrvsn_value" on "F_msrrvsn_value" (cost=0.29..0.32 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=261)

  • Index Cond: ((id = "J_msrrvsnii".revision) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
21. 0.261 0.261 ↑ 1.0 1 261

Index Scan using "QF_ccdaiteminfo_htmlname" on "F_ccdaiteminfo_htmlname" (cost=0.29..0.33 rows=1 width=26) (actual time=0.001..0.001 rows=1 loops=261)

  • Index Cond: ((id = "J_msrrvsnii".info) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
22. 0.261 0.261 ↑ 1.0 1 261

Index Scan using "QF_measure_datelow" on "F_measure_datelow" (cost=0.29..0.32 rows=1 width=12) (actual time=0.001..0.001 rows=1 loops=261)

  • Index Cond: ((id = "J_measrvsn".meas) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
23. 0.261 0.261 ↑ 1.0 1 261

Index Only Scan using "PJ_meascd" on "J_meascd" (cost=0.29..0.32 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=261)

  • Index Cond: ((meas = "J_measrvsn".meas) AND ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone))
  • Heap Fetches: 261
24. 0.003 0.008 ↑ 161.5 2 1

Hash (cost=17.90..17.90 rows=323 width=8) (actual time=0.008..0.008 rows=2 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.005 0.005 ↑ 161.5 2 1

Index Scan using "UF_labccd_weight" on "F_labccd_weight" (cost=0.15..17.90 rows=323 width=8) (actual time=0.004..0.005 rows=2 loops=1)

  • Index Cond: ("erasedAt" >= '9999-12-31 00:00:00'::timestamp without time zone)
Planning time : 6.265 ms
Execution time : 6.649 ms