explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lQ3B

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 0.377 ↓ 4.0 8 1

Limit (cost=11.30..11.31 rows=2 width=567) (actual time=0.374..0.377 rows=8 loops=1)

2. 0.045 0.374 ↓ 4.0 8 1

Sort (cost=11.30..11.31 rows=2 width=567) (actual time=0.372..0.374 rows=8 loops=1)

  • Sort Key: t0_.name
  • Sort Method: quicksort Memory: 27kB
3. 0.027 0.329 ↓ 4.0 8 1

Hash Join (cost=9.33..11.29 rows=2 width=567) (actual time=0.287..0.329 rows=8 loops=1)

  • Hash Cond: (t0_.id = t9_.organization_id)
4. 0.026 0.244 ↓ 2.4 41 1

Hash Join (cost=7.07..8.95 rows=17 width=575) (actual time=0.210..0.244 rows=41 loops=1)

  • Hash Cond: (t7_.organization_type_id = t6_.id)
5. 0.073 0.204 ↓ 2.4 41 1

Hash Right Join (cost=5.95..7.61 rows=17 width=583) (actual time=0.181..0.204 rows=41 loops=1)

  • Hash Cond: (t5_.organization_id = t0_.id)
6. 0.008 0.008 ↑ 1.0 35 1

Seq Scan on tbl_organization_sectors t5_ (cost=0.00..1.35 rows=35 width=8) (actual time=0.006..0.008 rows=35 loops=1)

7. 0.022 0.123 ↓ 1.2 20 1

Hash (cost=5.75..5.75 rows=16 width=583) (actual time=0.123..0.123 rows=20 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 17kB
8. 0.020 0.101 ↓ 1.2 20 1

Hash Right Join (cost=4.22..5.75 rows=16 width=583) (actual time=0.087..0.101 rows=20 loops=1)

  • Hash Cond: (t3_.organization_id = t0_.id)
9. 0.009 0.009 ↑ 1.0 29 1

Seq Scan on tbl_organization_countries t3_ (cost=0.00..1.29 rows=29 width=16) (actual time=0.004..0.009 rows=29 loops=1)

10. 0.018 0.072 ↑ 1.0 16 1

Hash (cost=4.02..4.02 rows=16 width=583) (actual time=0.072..0.072 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 16kB
11. 0.024 0.054 ↑ 1.0 16 1

Hash Join (cost=1.36..4.02 rows=16 width=583) (actual time=0.035..0.054 rows=16 loops=1)

  • Hash Cond: (t0_.id = t7_.organization_id)
12. 0.017 0.017 ↑ 1.0 33 1

Seq Scan on tbl_organizations t0_ (cost=0.00..2.33 rows=33 width=567) (actual time=0.005..0.017 rows=33 loops=1)

13. 0.007 0.013 ↑ 1.0 16 1

Hash (cost=1.16..1.16 rows=16 width=16) (actual time=0.013..0.013 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
14. 0.006 0.006 ↑ 1.0 16 1

Seq Scan on tbl_organization_types t7_ (cost=0.00..1.16 rows=16 width=16) (actual time=0.004..0.006 rows=16 loops=1)

15. 0.009 0.014 ↑ 1.0 5 1

Hash (cost=1.05..1.05 rows=5 width=8) (actual time=0.014..0.014 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
16. 0.005 0.005 ↑ 1.0 5 1

Seq Scan on tbl_dictionary_organization_type t6_ (cost=0.00..1.05 rows=5 width=8) (actual time=0.004..0.005 rows=5 loops=1)

17. 0.008 0.058 ↑ 1.0 3 1

Hash (cost=2.22..2.22 rows=3 width=8) (actual time=0.058..0.058 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.021 0.050 ↑ 1.0 3 1

Hash Join (cost=1.07..2.22 rows=3 width=8) (actual time=0.045..0.050 rows=3 loops=1)

  • Hash Cond: (t8_.id = t9_.user_id)
19. 0.011 0.011 ↑ 1.0 9 1

Seq Scan on tbl_users t8_ (cost=0.00..1.09 rows=9 width=8) (actual time=0.008..0.011 rows=9 loops=1)

20. 0.008 0.018 ↑ 1.0 3 1

Hash (cost=1.03..1.03 rows=3 width=16) (actual time=0.018..0.018 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
21. 0.010 0.010 ↑ 1.0 3 1

Seq Scan on tbl_organization_responsibles t9_ (cost=0.00..1.03 rows=3 width=16) (actual time=0.009..0.010 rows=3 loops=1)

Planning time : 3.681 ms
Execution time : 0.599 ms