tracker
All repositories: gitoria
1.4 KB
// tools/count-migrated.hl — mission 070: how many records keep a migrated value the sync replaced (`migratedSummary`, `migratedTitle`,// `migratedGenres`, `migratedHomepage`, `migratedTagline`; seasons/episodes `migratedTitle`/`migratedSummary`) + a few examples.// ONLY on a COPY or the stopped app: TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-migrated.hlimport { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'c = { summary = 0 title = 0 genres = 0 homepage = 0 tagline = 0 seasonTitle = 0 seasonSummary = 0 episodeTitle = 0 episodeSummary = 0 }ex = []for (s of showsTable.find(null, null)) {if (s.migratedSummary != null) { c.summary = c.summary + 1 }if (s.migratedTitle != null) { c.title = c.title + 1 if (ex.length < 8) { ex.push(s.migratedTitle + ' → ' + s.title) } }if (s.migratedGenres != null) { c.genres = c.genres + 1 }if (s.migratedHomepage != null) { c.homepage = c.homepage + 1 }if (s.migratedTagline != null) { c.tagline = c.tagline + 1 }}for (s of seasonsTable.find(null, null)) {if (s.migratedTitle != null) { c.seasonTitle = c.seasonTitle + 1 }if (s.migratedSummary != null) { c.seasonSummary = c.seasonSummary + 1 }}for (e of episodesTable.find(null, null)) {if (e.migratedTitle != null) { c.episodeTitle = c.episodeTitle + 1 }if (e.migratedSummary != null) { c.episodeSummary = c.episodeSummary + 1 }}console.log('migrated kept: ' + JSON.stringify(c))for (x of ex) { console.log(' title: ' + x) }
Branches
Latest commits
- 289c6ce4HM1 report: heap object breakdownmre
- 2e7d6257log: HM1 startedmre
- 2f790465mission HM1: heap object breakdownmre
- a18957falog: evening re-measure after CBmre
- aac9a98dlog: evening re-measure startmre
- 45163bd4log: person/tmdb error hypothesismre
- cb38de2blog: swap 503 causemre
- fd10c3d5log: CB livemre
- 7557c025log: CB deploy try 2mre
- 06a7534aMerge branch 'cb'mre
- 2f8030d6log: CB gates greenmre
- 498bf644log: CB gates startmre
- f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
- 6ea2c6d6log: morning re-measure 11-04mre
- 446290f0log: GC1 livemre
- 8e6aa91dlog: GC1 deploy retrymre
- 87ad2dc1log: GC1 deployingmre
- 53f10fb8Merge branch 'gc1-deploy'mre
- 7fcbf1d2log: GC1 deploy GOmre
- 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre