explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KPC5

Settings
# exclusive inclusive rows x rows loops node
1. 0.036 0.466 ↑ 111.6 8 1

Sort (cost=94.13..96.36 rows=893 width=525) (actual time=0.465..0.466 rows=8 loops=1)

  • Sort Method: quicksort Memory: 27kB
  • Sort Key: t0_.name
2. 0.024 0.430 ↑ 111.6 8 1

Hash Join (cost=9.83..50.36 rows=893 width=525) (actual time=0.420..0.430 rows=8 loops=1)

  • Hash Cond: (t9_.user_id = t8_.id)
3. 0.384 0.384 ↑ 111.6 8 1

Hash Join (cost=8.60..45.34 rows=893 width=533) (actual time=0.378..0.384 rows=8 loops=1)

4. 0.000 0.022 ↑ 1.1 9 1

Hash (cost=1.10..1.10 rows=10 width=8) (actual time=0.022..0.022 rows=9 loops=1)

  • Hash Cond: (t9_.organization_id = t0_.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
5. 0.011 0.011 ↑ 1.1 9 1

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

6. 0.007 0.007 ↑ 616.7 3 1

Seq Scan on tbl_organization_responsibles t9_ (cost=0.00..28.50 rows=1,850 width=16) (actual time=0.003..0.007 rows=3 loops=1)

7. 0.059 0.358 ↓ 2.9 41 1

Hash (cost=8.43..8.43 rows=14 width=533) (actual time=0.358..0.358 rows=41 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
8. 0.043 0.299 ↓ 2.9 41 1

Hash Join (cost=6.73..8.43 rows=14 width=533) (actual time=0.242..0.299 rows=41 loops=1)

  • Hash Cond: (t7_.organization_type_id = t6_.id)
9. 0.243 0.243 ↓ 2.9 41 1

Hash Right Join (cost=5.66..7.23 rows=14 width=541) (actual time=0.205..0.243 rows=41 loops=1)

10. 0.000 0.013 ↓ 1.7 5 1

Hash (cost=1.03..1.03 rows=3 width=8) (actual time=0.013..0.013 rows=5 loops=1)

  • Hash Cond: (t5_.organization_id = t0_.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
11. 0.012 0.012 ↓ 1.1 35 1

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

12. 0.008 0.008 ↓ 1.7 5 1

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

13. 0.029 0.185 ↓ 1.5 20 1

Hash (cost=5.50..5.50 rows=13 width=541) (actual time=0.184..0.185 rows=20 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 17kB
14. 0.036 0.156 ↓ 1.5 20 1

Hash Right Join (cost=4.02..5.50 rows=13 width=541) (actual time=0.130..0.156 rows=20 loops=1)

  • Hash Cond: (t3_.organization_id = t0_.id)
15. 0.010 0.010 ↓ 1.1 29 1

Seq Scan on tbl_organization_countries t3_ (cost=0.00..1.26 rows=26 width=16) (actual time=0.006..0.010 rows=29 loops=1)

16. 0.037 0.110 ↓ 1.2 16 1

Hash (cost=3.86..3.86 rows=13 width=541) (actual time=0.110..0.110 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 16kB
17. 0.028 0.073 ↓ 1.2 16 1

Hash Join (cost=1.29..3.86 rows=13 width=541) (actual time=0.049..0.073 rows=16 loops=1)

  • Hash Cond: (t0_.id = t7_.organization_id)
18. 0.027 0.027 ↓ 1.1 33 1

Seq Scan on tbl_organizations t0_ (cost=0.00..2.29 rows=29 width=525) (actual time=0.007..0.027 rows=33 loops=1)

19. 0.011 0.018 ↓ 1.2 16 1

Hash (cost=1.13..1.13 rows=13 width=16) (actual time=0.018..0.018 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 0.007 0.007 ↓ 1.2 16 1

Seq Scan on tbl_organization_types t7_ (cost=0.00..1.13 rows=13 width=16) (actual time=0.005..0.007 rows=16 loops=1)

Planning time : 1.096 ms
Execution time : 0.858 ms