-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
improvementIdeas for streamlining existing featuresIdeas for streamlining existing features
Milestone
Description
The database access can be more efficient by utilizing the following:
- A re-usable connection context that allows sharing the database connection across disconnected parts of the codebase. Yes, we already use a connection pool, but implementing such practices will reduce pool thrashing.
- Multiple transactions for each logical operation. Following point 1, connections should start in an uncommitted state. We can commit after things like updating the name and IP address history, fetching the player's ban, or fetching punishment formatting information.
- Perform retries on a per-transaction basis. This follows point 2 and will involve some refactoring, since the operation-retry is currently coupled to the connection acquisition itself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementIdeas for streamlining existing featuresIdeas for streamlining existing features