3 ms·
I'm really interested in this. How do you handle DB connections? I guess each CGI file becomes stateful because it's not reloaded all the time, and there's a co
by LAC-Tech 4y ago
I'm really interested in this. How do you handle DB connections? I guess each CGI file becomes stateful because it's not reloaded all the time, and there's a connection handle there.
- Animats 4y ago> How do you handle DB connections? Look at https://github.com/John-Nagle/vehiclelogserver https://github.com/John-Nagle/vehiclelogserver, which has database connections. Each FCGI program has a database connection. That database connection persists as long as the program instance is running. So it's not establishing a new database connection for each transaction.