Advertisement
Guest User

Untitled

a guest
Jul 11th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QUERY 1
  2. EXPLAIN ANALYSE
  3. SELECT
  4. f.account_number
  5. FROM
  6.     financial_balances f
  7.  
  8. Seq Scan on financial_balances f  (cost=0.00..1579244.48 rows=5673748 width=10) (actual time=1.990..9970.375 rows=3452255 loops=1)
  9. Planning time: 2.713 ms
  10. Execution time: 10055.913 ms
  11.  
  12.  
  13.  
  14. QUERY 2
  15. EXPLAIN ANALYSE
  16. SELECT
  17.  p.account_number
  18. FROM
  19.     debtor_personal P
  20.  
  21. Index Only Scan using debtor_personal_account_number_key on debtor_personal p  (cost=0.43..208808.44 rows=5636199 width=10) (actual time=0.191..817.714 rows=3452267 loops=1)
  22.   Heap Fetches: 6812
  23. Planning time: 1.086 ms
  24. Execution time: 895.618 ms
  25.  
  26.  
  27.  
  28. QUERY 3
  29. EXPLAIN ANALYSE
  30. SELECT
  31. f.account_number, p.account_number
  32. FROM
  33.     financial_balances f
  34. INNER JOIN debtor_personal P ON f.account_number = f.account_number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement