explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 4RjV

Settings
# exclusive inclusive rows x rows loops node
1. 0.005 1.182 ↑ 1.0 26 1

Limit (cost=1.40..89.45 rows=26 width=231) (actual time=0.670..1.182 rows=26 loops=1)

2. 0.732 1.177 ↑ 333.7 26 1

Nested Loop Left Join (cost=1.40..29,381.72 rows=8,676 width=231) (actual time=0.669..1.177 rows=26 loops=1)

  • Join Filter: (t."TicketFunctionID" = t0."ID")
  • Rows Removed by Join Filter: 9
3. 0.019 0.419 ↑ 333.7 26 1

Nested Loop Left Join (cost=1.40..21,890.29 rows=8,676 width=188) (actual time=0.073..0.419 rows=26 loops=1)

4. 0.008 0.218 ↑ 333.7 26 1

Nested Loop Left Join (cost=0.98..6,868.56 rows=8,676 width=188) (actual time=0.030..0.218 rows=26 loops=1)

5. 0.010 0.158 ↑ 333.7 26 1

Nested Loop Left Join (cost=0.70..4,255.34 rows=8,676 width=140) (actual time=0.028..0.158 rows=26 loops=1)

6. 0.096 0.096 ↑ 333.7 26 1

Index Scan Backward using "IX_Messages_DeliveryDate" on "Messages" m (cost=0.43..1,751.88 rows=8,676 width=112) (actual time=0.021..0.096 rows=26 loops=1)

  • Index Cond: (("DeliveryDate" >= '2020-07-26 00:00:00-04'::timestamp with time zone) AND ("DeliveryDate" < '2020-07-27 00:00:00-04'::timestamp with time zone))
  • Filter: ("Status" = 1)
7. 0.052 0.052 ↓ 0.0 0 26

Index Scan using "IX_MessageQueue_MessageID" on "MessageQueue" m0 (cost=0.27..0.29 rows=1 width=44) (actual time=0.002..0.002 rows=0 loops=26)

  • Index Cond: ("MessageID" = m."ID")
8. 0.052 0.052 ↑ 1.0 1 26

Index Scan using "PK_Destinations" on "Destinations" d (cost=0.28..0.30 rows=1 width=64) (actual time=0.002..0.002 rows=1 loops=26)

  • Index Cond: ("ID" = m."SendToDestinationID")
9. 0.182 0.182 ↑ 1.0 1 26

Index Scan using "PK_Tickets" on "Tickets" t (cost=0.42..1.73 rows=1 width=32) (actual time=0.007..0.007 rows=1 loops=26)

  • Index Cond: ("ID" = m."TicketID")
10. 0.018 0.026 ↑ 8.0 1 26

Materialize (cost=0.00..1.12 rows=8 width=26) (actual time=0.000..0.001 rows=1 loops=26)

11. 0.008 0.008 ↑ 2.0 4 1

Seq Scan on "TicketFunctions" t0 (cost=0.00..1.08 rows=8 width=26) (actual time=0.007..0.008 rows=4 loops=1)

Planning time : 1.174 ms
Execution time : 1.281 ms