gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8e6aa91d8e6aa91dlog: GC1 deploy retrymre8e6aa91d/tests/peek-tmdbfix.hl

1.5 KB

  1. // tests/peek-tmdbfix.hl — prints what tests/tmdbfix.mjs compares: every title's TMDB id / year fields, and what hangs on the records
  2. import { MPackDB } from 'hl:mpackdb'
  3. import { env } from 'hl:proc'
  4. storageDir = env('TRACKER_STORAGE')
  5. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  6. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  7. seasonsTable = new MPackDB(file = storageDir + '/seasons.db', primaryKey = '@id', indexes = ['!oldId'])
  8. episodesTable = new MPackDB(file = storageDir + '/episodes.db', primaryKey = '@id', indexes = ['!oldId'])
  9. watchesTable = new MPackDB(file = storageDir + '/watches.db', primaryKey = '@id', indexes = ['!oldId'])
  10. followsTable = new MPackDB(file = storageDir + '/follows.db', primaryKey = '@id', indexes = ['!oldId'])
  11. for (s of showsTable.find(null, null)) {
  12. console.log('show ' + JSON.stringify({ id = s.id slug = s.urlSegment tmdbId = s.tmdbId year = s.year migratedYear = s.migratedYear release = s.release migratedRelease = s.migratedRelease tmdbIdWas = s.tmdbIdWas adultCheck = s.adultCheck }))
  13. }
  14. nSeasons = 0
  15. for (x of seasonsTable.find(null, null)) { nSeasons = nSeasons + 1 }
  16. nEpisodes = 0
  17. for (x of episodesTable.find(null, null)) { nEpisodes = nEpisodes + 1 }
  18. for (w of watchesTable.find(null, null)) { console.log('watch ' + w.id + ' ' + w.targetType + ' ' + w.target) }
  19. for (f of followsTable.find(null, null)) { console.log('follow ' + f.id + ' ' + f.show) }
  20. console.log('counts seasons=' + nSeasons + ' episodes=' + nEpisodes)

Branches

Latest commits

  • 8e6aa91dlog: GC1 deploy retrymre
  • 87ad2dc1log: GC1 deployingmre
  • 53f10fb8Merge branch 'gc1-deploy'mre
  • 7fcbf1d2log: GC1 deploy GOmre
  • 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre
  • 6576c1cdgc1: release the people-view scan lists once the view is builtmre
  • 94f8a373gc1: back out the kept episode-id set (no measurable gain on /my/unwatched: 4.69 -> 4.61 GB per 150 loads)mre
  • a1a88bd4gc1: search skips the stale-key string while no entry is stale; /my/unwatched asks a kept id set instead of building a key string per episode rowmre
  • cd830744gc1: dbSearch: no split / map / list copy per candidate (scores from the stored text, top list touched only when the hit can enter)mre
  • 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre
  • ddb4127egc1: TRACKER_QSTATS=1 logs queue and cache sizes every 10 s (measurement only)mre
  • da60547fstatus: GC1 done, backup bugmre
  • e4171021log: GC1 result, backup hard-link bugmre
  • f1597214deploy.sh backup: tar --hard-dereference (hot tar stored mpackdb sidecars as hard links to .sessions files)mre
  • 6b58571elog: GC windowmre
  • 5c8baa1fdeploy lock: hold only around deploy.shmre
  • b8dac822log: hybriel#309mre
  • bf676d9elog: GC1 startedmre
  • c7828541mission GC1mre
  • ef949994conductor: neutral ticket rulemre