Migrate DeepDrftContext from SQLite to PostgreSQL; add docker-compose for local Postgres 17

This commit is contained in:
Daniel Harvey
2026-05-17 23:11:44 -04:00
parent ed61764e10
commit a65339395b
14 changed files with 118 additions and 85 deletions
@@ -27,7 +27,7 @@ public class TrackRepository
public async Task<PagedResult<TrackEntity>> GetPage(PagingParameters<TrackEntity> pageParameters)
{
// Two separate queries with no transaction: count and page can be momentarily inconsistent
// under concurrent writes. Acceptable — SQLite concurrency is low and the UI is read-only.
// under concurrent writes. Acceptable — write volume is low and the UI is read-only.
// If filtering is added, the count query must be updated to apply the same filter.
var count = await _db.Tracks.CountAsync();