-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enhance database initialization in db.go #2645
Conversation
- Updated GORM configuration to skip default transactions and prepare statements. - Modified the database connection string to include caching and journal mode settings. - Executed several PRAGMA statements to optimize SQLite performance and enable foreign key support. These changes improve database handling and performance in the application.
Let's test it for the next version to see what is happening. |
Errors after upgrading from v2.4.11 to v2.5.0 on Ubuntu 24.04.1: 2025-01-28T04:44:47.735681-05:00 mail systemd[1]: Started x-ui.service - x-ui Service. 2025-01-28T04:44:47.755488-05:00 mail x-ui[2828555]: 2025/01/28 04:44:47 Starting x-ui 2.5.0 Returning to 2.4.11 version works fine. |
Please do developer fix migrating model: FOREIGN KEY constraint failed Ubuntu 24.04.1 LTS |
same error |
Error after update docker install to v2.5.0. 3x-ui | 2025/02/02 12:25:57 Starting x-ui 2.5.0 |
* Revert "json post base path bug fixed (#2647)" This reverts commit 04cf250. * Revert "Group Management of Subscription Clients" * Revert "fix getSubGroupClients for enable/disable and edit clients." * Revert "Enhance database initialization in db.go (#2645)" This reverts commit 66fe841. * Revert "Add checkpoint handling in CloseDB function (#2646)" This reverts commit 4dd40f6. * Revert "Improved database model migration and added indexing (#2655)" This reverts commit b922d98.
These changes improve database handling and performance in the application.