gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9332bd109332bd10log: DP70 livemre9332bd10/tools/hm62-migration-repro.hl

874 B

  1. // HM62 minimal index migration and rollback/redeploy reproduction.
  2. import { MPackDB } from 'hl:mpackdb'
  3. import { env } from 'hl:proc'
  4. phase = env('HM62_PHASE')
  5. db = new MPackDB(file = env('HM62_DB'), primaryKey = '@id', indexes = phase == 'build' || phase == 'verify' ? ['!oldId', 'urlSegment', 'tmdbId'] : ['!oldId'], compact = false)
  6. if (phase == 'seed') { db.put({ id = 'first' oldId = 'first' urlSegment = 'First' tmdbId = 1 }) }
  7. if (phase == 'oldwrite') { db.put({ id = 'second' oldId = 'second' urlSegment = 'Second' tmdbId = 2 }) }
  8. if (phase == 'build') { console.log('build first=' + db.find('urlSegment', 'First').length) }
  9. if (phase == 'verify') {
  10. console.log('verify pk=' + (db.fetch('second') != null))
  11. console.log('verify slug=' + db.find('urlSegment', 'Second').length)
  12. console.log('verify tmdb=' + db.find('tmdbId', '2').length)
  13. }
  14. db.persist()
  15. db.close()

Branches

Latest commits

  • 9332bd10log: DP70 livemre
  • be11daa0DP70 brief fixmre
  • 886a7028DP70 brief, HM67 mergedmre
  • b41cdd6dMerge hm67-searchids: packed search IDsmre
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre
  • 62a5f6c7HM67 brief, HM66 mergedmre
  • 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