mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Optimize database performance with HikariCP and transaction batching (#1660)
* Optimize database performance with HikariCP and transaction batching - Add HikariCP-7.0.2 connection pooling with Raspberry Pi optimized settings - Consolidate database transactions in DirName, ChapterForDownload, and ChapterDownloadHelper - Remove duplicate queries and unused methods from ChapterForDownload - Batch database operations to reduce transaction overhead - Add shared query functions to eliminate redundant database calls - Configure memory settings for build optimization Performance improvements: - DirName functions: 99% faster (29s → 0.1s) - ChapterDownloadHelper: 99.5% faster (54s → 0.3s) - ChapterForDownload: 97% faster transaction operations - Overall system: 75% faster execution time (242s → 60s) * Fix review comments
This commit is contained in:
@@ -69,6 +69,7 @@ exposed-jdbc = { module = "org.jetbrains.exposed:exposed-jdbc", version.ref = "e
|
||||
exposed-javatime = { module = "org.jetbrains.exposed:exposed-java-time", version.ref = "exposed" }
|
||||
postgres = "org.postgresql:postgresql:42.7.8"
|
||||
h2 = "com.h2database:h2:1.4.200" # current database driver, can't update to h2 v2 without sql migration
|
||||
hikaricp = "com.zaxxer:HikariCP:7.0.2"
|
||||
|
||||
# Exposed Migrations
|
||||
exposed-migrations = "com.github.Suwayomi:exposed-migrations:3.8.0"
|
||||
|
||||
Reference in New Issue
Block a user