Advertisement
tmccanna

query with deleted = 'f'

Sep 10th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. QUERY PLAN
  2. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3. Hash Left Join (cost=217586.70..4322552.25 rows=21690 width=877) (actual time=3356.398..18836.236 rows=5 loops=1)
  4. Hash Cond: ((aum.id = ausp.usr_message) AND (aum.usr = ausp.usr))
  5. Filter: (((ausp.id IS NOT NULL) OR (NOT aum.deleted)) AND ((LEAST(ausp.stop_date, aum.stop_date) IS NULL) OR (LEAST(ausp.stop_date, aum.stop_date) > '2020-09-10 11:59:40.080622-04'::timestamp with time zone)) AND (COALESCE(ausp.usr, aum.usr) = 3690472))
  6. Rows Removed by Filter: 13555593
  7. -> Seq Scan on usr_message aum (cost=0.00..1849740.15 rows=12885143 width=777) (actual time=0.012..7292.932 rows=12895928 loops=1)
  8. Filter: (NOT deleted)
  9. Rows Removed by Filter: 3866687
  10. -> Hash (cost=124647.48..124647.48 rows=6195948 width=44) (actual time=3082.903..3082.903 rows=5670944 loops=1)
  11. Buckets: 8388608 Batches: 1 Memory Usage: 464608kB
  12. -> Seq Scan on usr_standing_penalty ausp (cost=0.00..124647.48 rows=6195948 width=44) (actual time=0.022..1117.227 rows=6195948 loops=1)
  13. Planning time: 16.781 ms
  14. Execution time: 18842.727 ms
  15. (12 rows)
  16.  
  17. (END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement