@hackage esqueleto-streaming0.1.0.0
Memory-constant streaming of Esqueleto results from PostgreSQL
Categories
License
BSD-3-Clause
Maintainer
support@supercede.com
Links
Versions
- 0.1.0.0 Wed, 20 Oct 2021
Installation
Dependencies (7)
- base >=4.7 && <5
- conduit >=1 && <1.4
- esqueleto >=3.5 && <3.6
- persistent-postgresql >=2.13.2 && <2.14
- persistent-postgresql-streaming >=0.1 && <0.2
- resourcet >=0.3 && <2 Show all…
Dependents (0)
esqueleto-streaming
This library allows for memory-constant streaming of the results of esqueleto queries from PostgreSQL databases.
This code makes use of the PostgreSQL-only cursors, which allow for batched access to the result set of a query at speeds comparable to loading all the results into memory at once.
See the main project README for more.
Streaming results from Esqueleto queries
The main function of this library is selectCursor, which can be used in place of select to run an Esqueleto query. selectCursor runs in a ConduitT - consuming the conduit will pull results from the database in constant memory.
FAQ
Why is selectCursor so slow?
Have you configured PostgreSQL correctly? See the section in the README about it.