electiondata
electiondata copied to clipboard
Handle pool size better
Issue #248 upped the available SQLAlchemy connections available to pull from. This was done for better performance through the front end. However, it's overkill for anything else. A better way to handle it is:
- Add a parameter indicating whether it's for use with the DataLoader or the Analyzer (dataloader likely only needs one max, since likely only one person will ever be loading data into a system)
- If Analyzer, read something in from an environment variable saying whether it's for a production environment, like the VV server, or for "local" use. If on a production server, increase the pool size; otherwise reduce pool size.