gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb32b8440b32b8440Merge hm66-catalogindex: packed catalog indexmreb32b8440/tools/count-migrated.hl

1.4 KB

  1. // tools/count-migrated.hl — mission 070: how many records keep a migrated value the sync replaced (`migratedSummary`, `migratedTitle`,
  2. // `migratedGenres`, `migratedHomepage`, `migratedTagline`; seasons/episodes `migratedTitle`/`migratedSummary`) + a few examples.
  3. // ONLY on a COPY or the stopped app: TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-migrated.hl
  4. import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'
  5. c = { summary = 0 title = 0 genres = 0 homepage = 0 tagline = 0 seasonTitle = 0 seasonSummary = 0 episodeTitle = 0 episodeSummary = 0 }
  6. ex = []
  7. for (s of showsTable.find(null, null)) {
  8. if (s.migratedSummary != null) { c.summary = c.summary + 1 }
  9. if (s.migratedTitle != null) { c.title = c.title + 1 if (ex.length < 8) { ex.push(s.migratedTitle + ' → ' + s.title) } }
  10. if (s.migratedGenres != null) { c.genres = c.genres + 1 }
  11. if (s.migratedHomepage != null) { c.homepage = c.homepage + 1 }
  12. if (s.migratedTagline != null) { c.tagline = c.tagline + 1 }
  13. }
  14. for (s of seasonsTable.find(null, null)) {
  15. if (s.migratedTitle != null) { c.seasonTitle = c.seasonTitle + 1 }
  16. if (s.migratedSummary != null) { c.seasonSummary = c.seasonSummary + 1 }
  17. }
  18. for (e of episodesTable.find(null, null)) {
  19. if (e.migratedTitle != null) { c.episodeTitle = c.episodeTitle + 1 }
  20. if (e.migratedSummary != null) { c.episodeSummary = c.episodeSummary + 1 }
  21. }
  22. console.log('migrated kept: ' + JSON.stringify(c))
  23. for (x of ex) { console.log(' title: ' + x) }

Branches

Latest commits

  • b32b8440Merge hm66-catalogindex: packed catalog indexmre
  • 2db0f7adReport HM66 heap measurements and validationmre
  • 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
  • 71134e21HM66 briefmre
  • ed4cbab2status timemre
  • e982c26dlog: HM65 mergedmre
  • 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
  • 07a5c883HM65 report measured field projection and complete validationmre
  • 0eab858fRead only catalog date fields during the episode boot scanmre
  • d3179273log: HM65 hl:heap vendoringmre
  • cb78a1a0HM65 report missing heap diagnostic package with repromre
  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre