Zeri
CDCloudflare Developers
•Created by Zeri on 11/9/2023 in #workers-help
Can I create a "non-edge" worker?
This won't work with TCP Connect()I am connecting to Postgres via
pg
and responses cannot be stale. This isn't the answer I was hoping for but thanks for the information!6 replies
CDCloudflare Developers
•Created by Zeri on 10/31/2023 in #workers-help
It appears that a `Promise.all()` of "pg" requests happens serially rather than parallel. Expected?
Oh wow. It looks like individual postgres connections don't support concurrency. I've used postgres off-and-on for several years now, I can't believe I didn't know this. I guess all the tools I've used in the past have abstracted away from this limitation. So the behavior I'm seeing is the result of using a single database connection to process an array of queries. Postgres will only resolve the queries in sequence and not in parallel.
2 replies