Commit Graph
3 Commits
Author SHA1 Message Date
Zahar Izmailov b922d986d6 Improved database model migration and added indexing (#2655) 2025-02-03 13:36:03 +01:00
Zahar IzmailovandZakhar Izmaylov 4dd40f6f19 Add checkpoint handling in CloseDB function (#2646)
* Add checkpoint handling in CloseDB function

---------

Co-authored-by: Zakhar Izmaylov <ptdev@kedruss.ru>
2025-01-21 22:55:21 +01:00
Zahar IzmailovandZakhar Izmaylov 66fe84181b Enhance database initialization in db.go (#2645)
- 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.

Co-authored-by: Zakhar Izmaylov <ptdev@kedruss.ru>
2025-01-21 02:59:30 +01:00