-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize SQL user loading and saving (#303)
- A user is now loaded in a single statement with subqueries - Saving key_values will now utilize batched statements
- Loading branch information
Showing
4 changed files
with
361 additions
and
280 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
12 changes: 12 additions & 0 deletions
12
common/src/main/java/dev/aurelium/auraskills/common/storage/sql/KeyValueRow.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package dev.aurelium.auraskills.common.storage.sql; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public record KeyValueRow( | ||
int dataId, | ||
@Nullable String categoryId, | ||
@NotNull String keyName, | ||
@NotNull String value | ||
) { | ||
} |
Oops, something went wrong.