> but multi-connection thread pools and threads, ... all for a single > connection are way overkill.
Fair enough. mongoc_client_t it is. Will update here when these changes are taken care of. Out of town at the moment. Regards Hamid Maadani June 18, 2022 6:04 PM, "Viktor Dukhovni" <postfix-us...@dukhovni.org> wrote: > On Sun, Jun 19, 2022 at 12:47:39AM +0000, Hamid Maadani wrote: > >> perhaps typically querying a single underlying "database" with >> different queries/results for each "table". >> >> Isn't that the case, when we configure postfix with mysql for example, >> and create different tables for virtual domains, virtual users and >> virtual aliases? > > Yes, a single database with multiple tables is common. So reusing > connections across tables makes some sense, but multi-connection > thread pools and threads, ... all for a single connection are > way overkill. > > IIRC the LDAP table code does attempt to share the same LDAP connection > for tables that differ essentially only in the query and result > attributes. > > At this stage, best to keep it simple and make the code correct first. > Optimisations (whether thread pools or connection sharing can come > later). > > -- > Viktor.