Skip to content

Commit

Permalink
Disable streaming
Browse files Browse the repository at this point in the history
Currently seriously regressed and slow
  • Loading branch information
ocharles committed Jan 8, 2018
1 parent a7185ba commit 7650254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rel8/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ type QueryRunner m = forall a. Pg.RowParser a -> Pg.Query -> Stream (Of a) m ()
-- 'stream' = 'queryWith_'
-- @
stream :: (MonadResource m) => Connection -> QueryRunner m
stream conn parser query = queryWith_ parser conn query
stream conn parser query =
liftIO (Pg.queryWith_ parser conn query) >>= S.each

-- | Stream the results of a query and fetch the results using a PostgreSQL
-- cursor. This variation is slightly more expensive, but has the benefit that
Expand Down

0 comments on commit 7650254

Please sign in to comment.