Managing Database Connections
Making a database connection is expensive
- TCP session and authentication
- Launching and initializing database thread(s)
- Shutting down a connection is expensive too
How/when to create connections then?
- Connect and disconnect to serve each request?
- One for each “user”?