Skip to content

Instantly share code, notes, and snippets.

@fourseven
Created June 25, 2014 23:25

Revisions

  1. Mathew Hartley created this gist Jun 25, 2014.
    5 changes: 5 additions & 0 deletions SQLcleanup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Before
    Hash Semi Join (cost=1374.03..1852.31 rows=59 width=62) (actual time=22.141..23.774 rows=1 loops=1)

    After
    Nested Loop Anti Join (cost=19.22..235.45 rows=33 width=62) (actual time=0.046..0.047 rows=1 loops=1)