]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commit
Switch to streaming queries
authorMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 00:37:05 +0000 (00:37 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 05:58:32 +0000 (05:58 +0000)
commitfec612f35dd0b83106b2a64904245f0dc9d76ace
tree6dac3b7f7f63d94375a2e62359e5196b9a9ebe74
parent3b7f31308502ed75009c4e8b8ce685ac9c253a3a
Switch to streaming queries

In order to use streaming queries we have to use `tokio-postgres`'s
`query_raw` command, rather than `query`. This should reduce our
memory footprint from 10+GB to well under one.
src/lookup.rs