graphql-engine/server/lib/pg-client-hs
kodiakhq[bot] 3f3b19c565 server: tune builder runners, for ByteStrings we're about to send
`toLazyByteString` is a little deficient in two ways:

- It allocates relatively large chunks (4KB + 32KB +32KB, etc…) which is wasteful for small ByteStrings
- It shrinks each chunk (Copying the data to a new chunk of exactly the right size) if it's not more than half filled. If we're running the builder right before we send it over the wire, this copy is totally extraneous (we simply end up with more work for the next GC)

part of the effort: https://github.com/hasura/graphql-engine-mono/issues/5518

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7187
GitOrigin-RevId: b499cd49c33da6cfee96be629a36b5c812486e39
2022-12-07 06:01:08 +00:00
..
bench Clean up pg-client-hs 2022-10-07 11:56:55 +00:00
ci server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
src server: tune builder runners, for ByteStrings we're about to send 2022-12-07 06:01:08 +00:00
test [pg-client] test cancelled queries actually stop running queries 2022-12-05 12:19:11 +00:00
.gitignore server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
cabal.project server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
docker-compose.yml [pg-client] test cancelled queries actually stop running queries 2022-12-05 12:19:11 +00:00
LICENSE server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
Makefile [pg-client] test cancelled queries actually stop running queries 2022-12-05 12:19:11 +00:00
pg-client.cabal Clean up pg-client-hs 2022-10-07 11:56:55 +00:00
README.md server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
stack.yaml server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
stack.yaml.lock server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
weeder.dhall server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00

pg-client

build status

A low level Postgres client library for Haskell. Used at Hasura in various production projects.

Style

This repository follows the graphql-engine style guide. Use make format to run the formatter.