franklindyer / agora-app

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.
4 stars 1 forks source link

New db connection opened for each command to AgoraDatabaseManager #3

Closed franklindyer closed 7 months ago

franklindyer commented 7 months ago

AgoraDatabaseManager should not open a brand new connection for each command. A new connection for each thread (responding to a web request) would be reasonable. Alternatively, we could use a single connection (or a small finite fixed number of them) and use an async task queue.