vibe.d + dpq2 + json trick

Denis Feklushkin feklushkin.denis at gmail.com
Thu Aug 28 16:01:08 UTC 2025


On Thursday, 28 August 2025 at 13:43:06 UTC, Serg Gini wrote:

> Does dpq2 also single-threaded solution as vibe.d?

No (with some limitations)

And, for example, you can make two different SQL requests 
simultaneously in different Vibe.d threads

But it is need to understand that multithreading by itself will 
not make queries execution more performant. In addition, the 
number of available connections to the Postgres is usually 
limited to a small number, because Postgres is designed in such a 
way that one Postgres worker process handles one connection at 
same time.



More information about the Digitalmars-d mailing list