shiori/internal/database
Andriy Kushnir 0246e10dff
feat: improve performance for sqlite queries (#425)
* [sqlite] Added has_content column and relevant migration

* Fix typo in docstring

* [sqlite] Fetch content for bookmarks separately

* [sqlite] Store has_content alongside with bookmark

* [sqlite] Rename variable to distinguish it from main query

* [sqlite] Use by-reference instead of no-op copy

* [sqlite] Reduce queries count from ≈30 to 1 to fetch tags

* Lint fixes

* Make minor logging improvements

* Wrap entire migration in transaction block

* Added «down» migration

* Drop workaround for old SQLite versions
2022-08-08 20:52:33 +02:00
..
migrations feat: improve performance for sqlite queries (#425) 2022-08-08 20:52:33 +02:00
database.go feat: improve performance for sqlite queries (#425) 2022-08-08 20:52:33 +02:00
mysql.go implement migration for mysql & postgres (#422) 2022-05-03 23:30:28 +02:00
pg.go implement migration for mysql & postgres (#422) 2022-05-03 23:30:28 +02:00
sqlite.go feat: improve performance for sqlite queries (#425) 2022-08-08 20:52:33 +02:00