-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix/feat: use joins instead of n+1/opening multiple connections (#1297)
* chore: wip sqlite concurrency issue * chore: use left join to get flags/variants at same time * chore: comments to clarify logic * chore: finish joins * chore: set maxopencons to 1 for sqlite * chore: only disable CSP headers in development * Update internal/storage/sql/db.go Co-authored-by: George <me@georgemac.com> * chore: log warning if overriding max_open_conn --------- Co-authored-by: George <me@georgemac.com>
- Loading branch information
1 parent
ef32b3e
commit 6ded9f8
Showing
8 changed files
with
410 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.