@hackage persistent-postgresql-streaming0.1.0.0
Memory-constant streaming of Persistent entities from PostgreSQL
Categories
License
BSD-3-Clause
Maintainer
support@supercede.com
Links
Versions
- 0.1.0.0 Wed, 20 Oct 2021
Installation
Dependencies (10)
- base >=4.7 && <5
- mtl >=2 && <2.3
- text >=1 && <1.3
- transformers >=0.5 && <0.6
- conduit >=1.3 && <1.4
- monad-logger >=0.3.28.4 && <0.4 Show all…
Dependents (1)
@hackage/esqueleto-streaming
persistent-postgresql-streaming
This library allows for memory-constant streaming of persistent
entities 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 Persistent queries
The main function of this library is selectStream
, which can be used in place of selectSource
. selectSource
runs in a ConduitT
- consuming the conduit will pull results from the database in constant memory.
FAQ
Why is selectStream
so slow?
Have you configured PostgreSQL correctly? See the section in the README about it.