by codaphiliac · 1y ago · 0 comments
Chances are, the popular databases stay in cache and are quick to open anyway; and the unpopular ones are rarely accessed so delay is ok. But you'd also be able to monitor for disk activity/latency on a system level and add more disks if you need more throughput; possibly disks attached to other machines, if you also need more cpu/ram to go with it. Should be relatively simple to partition the low use databases, because they're low use.
You'll more easily pool connections to the same DB, of course, but the difference might not be so stark.
There could be merit to "open and close right after" though, for sure.