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.