@powersync/service-module-mongodb-storage 0.0.0-dev-20260602073133 → 0.0.0-dev-20260803144812

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/CHANGELOG.md +101 -5
  2. package/dist/migrations/db/migrations/1782950400000-checkpoint-requested-at-index.d.ts +3 -0
  3. package/dist/migrations/db/migrations/1782950400000-checkpoint-requested-at-index.js +41 -0
  4. package/dist/migrations/db/migrations/1782950400000-checkpoint-requested-at-index.js.map +1 -0
  5. package/dist/storage/MongoBucketStorage.d.ts +41 -16
  6. package/dist/storage/MongoBucketStorage.js +226 -71
  7. package/dist/storage/MongoBucketStorage.js.map +1 -1
  8. package/dist/storage/implementation/MongoBucketBatch.d.ts +56 -25
  9. package/dist/storage/implementation/MongoBucketBatch.js +110 -62
  10. package/dist/storage/implementation/MongoBucketBatch.js.map +1 -1
  11. package/dist/storage/implementation/MongoChecksums.d.ts +41 -13
  12. package/dist/storage/implementation/MongoChecksums.js +36 -121
  13. package/dist/storage/implementation/MongoChecksums.js.map +1 -1
  14. package/dist/storage/implementation/MongoCompactor.d.ts +17 -19
  15. package/dist/storage/implementation/MongoCompactor.js +80 -263
  16. package/dist/storage/implementation/MongoCompactor.js.map +1 -1
  17. package/dist/storage/implementation/MongoHydrationState.d.ts +11 -0
  18. package/dist/storage/implementation/MongoHydrationState.js +49 -0
  19. package/dist/storage/implementation/MongoHydrationState.js.map +1 -0
  20. package/dist/storage/implementation/MongoParameterCompactor.d.ts +7 -6
  21. package/dist/storage/implementation/MongoParameterCompactor.js +25 -2
  22. package/dist/storage/implementation/MongoParameterCompactor.js.map +1 -1
  23. package/dist/storage/implementation/MongoParsedSyncConfigSet.d.ts +13 -0
  24. package/dist/storage/implementation/MongoParsedSyncConfigSet.js +64 -0
  25. package/dist/storage/implementation/MongoParsedSyncConfigSet.js.map +1 -0
  26. package/dist/storage/implementation/MongoPersistedReplicationStream.d.ts +36 -0
  27. package/dist/storage/implementation/MongoPersistedReplicationStream.js +90 -0
  28. package/dist/storage/implementation/MongoPersistedReplicationStream.js.map +1 -0
  29. package/dist/storage/implementation/MongoPersistedSyncConfigContent.d.ts +25 -0
  30. package/dist/storage/implementation/MongoPersistedSyncConfigContent.js +123 -0
  31. package/dist/storage/implementation/MongoPersistedSyncConfigContent.js.map +1 -0
  32. package/dist/storage/implementation/MongoStorageProvider.js +39 -4
  33. package/dist/storage/implementation/MongoStorageProvider.js.map +1 -1
  34. package/dist/storage/implementation/MongoSyncBucketStorage.d.ts +57 -29
  35. package/dist/storage/implementation/MongoSyncBucketStorage.js +87 -61
  36. package/dist/storage/implementation/MongoSyncBucketStorage.js.map +1 -1
  37. package/dist/storage/implementation/MongoSyncRulesLock.d.ts +1 -1
  38. package/dist/storage/implementation/MongoSyncRulesLock.js +3 -3
  39. package/dist/storage/implementation/MongoSyncRulesLock.js.map +1 -1
  40. package/dist/storage/implementation/MongoWriteCheckpointAPI.d.ts +2 -1
  41. package/dist/storage/implementation/MongoWriteCheckpointAPI.js +171 -24
  42. package/dist/storage/implementation/MongoWriteCheckpointAPI.js.map +1 -1
  43. package/dist/storage/implementation/common/MongoSyncBucketStorageCheckpoint.d.ts +8 -0
  44. package/dist/storage/implementation/common/MongoSyncBucketStorageCheckpoint.js +2 -0
  45. package/dist/storage/implementation/common/MongoSyncBucketStorageCheckpoint.js.map +1 -0
  46. package/dist/storage/implementation/common/PersistedBatch.d.ts +7 -2
  47. package/dist/storage/implementation/common/PersistedBatch.js +12 -0
  48. package/dist/storage/implementation/common/PersistedBatch.js.map +1 -1
  49. package/dist/storage/implementation/common/VersionedPowerSyncMongoBase.js +1 -1
  50. package/dist/storage/implementation/common/VersionedPowerSyncMongoBase.js.map +1 -1
  51. package/dist/storage/implementation/createMongoSyncBucketStorage.d.ts +2 -2
  52. package/dist/storage/implementation/createMongoSyncBucketStorage.js +4 -4
  53. package/dist/storage/implementation/createMongoSyncBucketStorage.js.map +1 -1
  54. package/dist/storage/implementation/db.js +17 -15
  55. package/dist/storage/implementation/db.js.map +1 -1
  56. package/dist/storage/implementation/models.d.ts +20 -13
  57. package/dist/storage/implementation/models.js.map +1 -1
  58. package/dist/storage/implementation/v1/MongoBucketBatchV1.d.ts +9 -1
  59. package/dist/storage/implementation/v1/MongoBucketBatchV1.js +61 -29
  60. package/dist/storage/implementation/v1/MongoBucketBatchV1.js.map +1 -1
  61. package/dist/storage/implementation/v1/MongoChecksumsV1.d.ts +4 -4
  62. package/dist/storage/implementation/v1/MongoChecksumsV1.js +119 -7
  63. package/dist/storage/implementation/v1/MongoChecksumsV1.js.map +1 -1
  64. package/dist/storage/implementation/v1/MongoCompactorV1.d.ts +11 -2
  65. package/dist/storage/implementation/v1/MongoCompactorV1.js +251 -2
  66. package/dist/storage/implementation/v1/MongoCompactorV1.js.map +1 -1
  67. package/dist/storage/implementation/v1/MongoSyncBucketStorageV1.d.ts +18 -19
  68. package/dist/storage/implementation/v1/MongoSyncBucketStorageV1.js +82 -58
  69. package/dist/storage/implementation/v1/MongoSyncBucketStorageV1.js.map +1 -1
  70. package/dist/storage/implementation/v1/SingleBucketStoreV1.d.ts +9 -10
  71. package/dist/storage/implementation/v1/SingleBucketStoreV1.js +2 -8
  72. package/dist/storage/implementation/v1/SingleBucketStoreV1.js.map +1 -1
  73. package/dist/storage/implementation/v1/VersionedPowerSyncMongoV1.d.ts +2 -1
  74. package/dist/storage/implementation/v1/VersionedPowerSyncMongoV1.js +3 -0
  75. package/dist/storage/implementation/v1/VersionedPowerSyncMongoV1.js.map +1 -1
  76. package/dist/storage/implementation/v1/models.d.ts +10 -1
  77. package/dist/storage/implementation/v3/BucketDataContextV3.d.ts +13 -0
  78. package/dist/storage/implementation/v3/BucketDataContextV3.js +23 -0
  79. package/dist/storage/implementation/v3/BucketDataContextV3.js.map +1 -0
  80. package/dist/storage/implementation/v3/MongoBucketBatchV3.d.ts +8 -4
  81. package/dist/storage/implementation/v3/MongoBucketBatchV3.js +309 -259
  82. package/dist/storage/implementation/v3/MongoBucketBatchV3.js.map +1 -1
  83. package/dist/storage/implementation/v3/MongoChecksumsV3.d.ts +30 -9
  84. package/dist/storage/implementation/v3/MongoChecksumsV3.js +161 -20
  85. package/dist/storage/implementation/v3/MongoChecksumsV3.js.map +1 -1
  86. package/dist/storage/implementation/v3/MongoCompactorV3.d.ts +40 -2
  87. package/dist/storage/implementation/v3/MongoCompactorV3.js +647 -23
  88. package/dist/storage/implementation/v3/MongoCompactorV3.js.map +1 -1
  89. package/dist/storage/implementation/v3/MongoStoppedSyncConfigCleanup.d.ts +67 -0
  90. package/dist/storage/implementation/v3/MongoStoppedSyncConfigCleanup.js +351 -0
  91. package/dist/storage/implementation/v3/MongoStoppedSyncConfigCleanup.js.map +1 -0
  92. package/dist/storage/implementation/v3/MongoSyncBucketStorageV3.d.ts +45 -30
  93. package/dist/storage/implementation/v3/MongoSyncBucketStorageV3.js +272 -140
  94. package/dist/storage/implementation/v3/MongoSyncBucketStorageV3.js.map +1 -1
  95. package/dist/storage/implementation/v3/PersistedBatchV3.d.ts +6 -3
  96. package/dist/storage/implementation/v3/PersistedBatchV3.js +84 -21
  97. package/dist/storage/implementation/v3/PersistedBatchV3.js.map +1 -1
  98. package/dist/storage/implementation/v3/SourceRecordStoreV3.d.ts +3 -3
  99. package/dist/storage/implementation/v3/SourceRecordStoreV3.js +13 -11
  100. package/dist/storage/implementation/v3/SourceRecordStoreV3.js.map +1 -1
  101. package/dist/storage/implementation/v3/VersionedPowerSyncMongoV3.d.ts +15 -13
  102. package/dist/storage/implementation/v3/VersionedPowerSyncMongoV3.js +32 -27
  103. package/dist/storage/implementation/v3/VersionedPowerSyncMongoV3.js.map +1 -1
  104. package/dist/storage/implementation/v3/bucket-format.d.ts +13 -0
  105. package/dist/storage/implementation/v3/bucket-format.js +77 -0
  106. package/dist/storage/implementation/v3/bucket-format.js.map +1 -0
  107. package/dist/storage/implementation/v3/chunking.d.ts +10 -0
  108. package/dist/storage/implementation/v3/chunking.js +30 -0
  109. package/dist/storage/implementation/v3/chunking.js.map +1 -0
  110. package/dist/storage/implementation/v3/models.d.ts +101 -21
  111. package/dist/storage/implementation/v3/models.js +11 -28
  112. package/dist/storage/implementation/v3/models.js.map +1 -1
  113. package/dist/storage/implementation/v3/object-storage/BucketDataObjectStorage.d.ts +21 -0
  114. package/dist/storage/implementation/v3/object-storage/BucketDataObjectStorage.js +44 -0
  115. package/dist/storage/implementation/v3/object-storage/BucketDataObjectStorage.js.map +1 -0
  116. package/dist/storage/implementation/v3/object-storage/ObjectStorage.d.ts +30 -0
  117. package/dist/storage/implementation/v3/object-storage/ObjectStorage.js +12 -0
  118. package/dist/storage/implementation/v3/object-storage/ObjectStorage.js.map +1 -0
  119. package/dist/storage/implementation/v3/object-storage/ObjectStorageLifecycle.d.ts +70 -0
  120. package/dist/storage/implementation/v3/object-storage/ObjectStorageLifecycle.js +146 -0
  121. package/dist/storage/implementation/v3/object-storage/ObjectStorageLifecycle.js.map +1 -0
  122. package/dist/storage/implementation/v3/object-storage/S3ObjectStorage.d.ts +42 -0
  123. package/dist/storage/implementation/v3/object-storage/S3ObjectStorage.js +285 -0
  124. package/dist/storage/implementation/v3/object-storage/S3ObjectStorage.js.map +1 -0
  125. package/dist/storage/implementation/v3/source-table-utils.d.ts +55 -0
  126. package/dist/storage/implementation/v3/source-table-utils.js +214 -0
  127. package/dist/storage/implementation/v3/source-table-utils.js.map +1 -0
  128. package/dist/storage/storage-index.d.ts +4 -4
  129. package/dist/storage/storage-index.js +4 -4
  130. package/dist/storage/storage-index.js.map +1 -1
  131. package/dist/types/types.d.ts +49 -3
  132. package/dist/types/types.js +48 -1
  133. package/dist/types/types.js.map +1 -1
  134. package/dist/utils/test-utils.d.ts +1 -2
  135. package/dist/utils/test-utils.js +7 -1
  136. package/dist/utils/test-utils.js.map +1 -1
  137. package/dist/utils/util.d.ts +9 -2
  138. package/dist/utils/util.js +128 -4
  139. package/dist/utils/util.js.map +1 -1
  140. package/package.json +12 -19
  141. package/src/migrations/db/migrations/1782950400000-checkpoint-requested-at-index.ts +55 -0
  142. package/src/storage/MongoBucketStorage.ts +347 -88
  143. package/src/storage/implementation/MongoBucketBatch.ts +147 -82
  144. package/src/storage/implementation/MongoChecksums.ts +93 -153
  145. package/src/storage/implementation/MongoCompactor.ts +102 -316
  146. package/src/storage/implementation/MongoHydrationState.ts +61 -0
  147. package/src/storage/implementation/MongoParameterCompactor.ts +25 -6
  148. package/src/storage/implementation/MongoParsedSyncConfigSet.ts +88 -0
  149. package/src/storage/implementation/MongoPersistedReplicationStream.ts +118 -0
  150. package/src/storage/implementation/MongoPersistedSyncConfigContent.ts +154 -0
  151. package/src/storage/implementation/MongoStorageProvider.ts +46 -4
  152. package/src/storage/implementation/MongoSyncBucketStorage.ts +121 -87
  153. package/src/storage/implementation/MongoSyncRulesLock.ts +7 -4
  154. package/src/storage/implementation/MongoWriteCheckpointAPI.ts +202 -28
  155. package/src/storage/implementation/common/MongoSyncBucketStorageCheckpoint.ts +9 -0
  156. package/src/storage/implementation/common/PersistedBatch.ts +19 -3
  157. package/src/storage/implementation/common/VersionedPowerSyncMongoBase.ts +1 -1
  158. package/src/storage/implementation/createMongoSyncBucketStorage.ts +21 -7
  159. package/src/storage/implementation/db.ts +19 -20
  160. package/src/storage/implementation/models.ts +20 -14
  161. package/src/storage/implementation/v1/MongoBucketBatchV1.ts +75 -37
  162. package/src/storage/implementation/v1/MongoChecksumsV1.ts +154 -12
  163. package/src/storage/implementation/v1/MongoCompactorV1.ts +294 -9
  164. package/src/storage/implementation/v1/MongoSyncBucketStorageV1.ts +142 -105
  165. package/src/storage/implementation/v1/SingleBucketStoreV1.ts +18 -27
  166. package/src/storage/implementation/v1/VersionedPowerSyncMongoV1.ts +11 -1
  167. package/src/storage/implementation/v1/models.ts +11 -1
  168. package/src/storage/implementation/v3/BucketDataContextV3.ts +32 -0
  169. package/src/storage/implementation/v3/MongoBucketBatchV3.ts +382 -321
  170. package/src/storage/implementation/v3/MongoChecksumsV3.ts +250 -32
  171. package/src/storage/implementation/v3/MongoCompactorV3.ts +847 -32
  172. package/src/storage/implementation/v3/MongoStoppedSyncConfigCleanup.ts +482 -0
  173. package/src/storage/implementation/v3/MongoSyncBucketStorageV3.ts +359 -187
  174. package/src/storage/implementation/v3/PersistedBatchV3.ts +118 -37
  175. package/src/storage/implementation/v3/SourceRecordStoreV3.ts +12 -12
  176. package/src/storage/implementation/v3/VersionedPowerSyncMongoV3.ts +46 -36
  177. package/src/storage/implementation/v3/bucket-format.ts +97 -0
  178. package/src/storage/implementation/v3/chunking.ts +40 -0
  179. package/src/storage/implementation/v3/models.ts +132 -55
  180. package/src/storage/implementation/v3/object-storage/BucketDataObjectStorage.ts +54 -0
  181. package/src/storage/implementation/v3/object-storage/ObjectStorage.ts +29 -0
  182. package/src/storage/implementation/v3/object-storage/ObjectStorageLifecycle.ts +171 -0
  183. package/src/storage/implementation/v3/object-storage/S3ObjectStorage.ts +343 -0
  184. package/src/storage/implementation/v3/source-table-utils.ts +392 -0
  185. package/src/storage/storage-index.ts +12 -4
  186. package/src/types/types.ts +58 -1
  187. package/src/utils/test-utils.ts +8 -3
  188. package/src/utils/util.ts +185 -6
  189. package/test/src/__snapshots__/storage.test.ts.snap +0 -75
  190. package/test/src/__snapshots__/storage_sync.test.ts.snap +35 -617
  191. package/test/src/cleanup-stopped-sync-configs.test.ts +671 -0
  192. package/test/src/helpers/MemoryObjectStorage.ts +53 -0
  193. package/test/src/helpers/s3TestFactory.ts +69 -0
  194. package/test/src/object_storage_lifecycle.test.ts +59 -0
  195. package/test/src/setup.ts +6 -1
  196. package/test/src/storage.test.ts +227 -13
  197. package/test/src/storage_compacting.test.ts +1951 -12
  198. package/test/src/storage_object_storage_inline_threshold.test.ts +116 -0
  199. package/test/src/storage_s3_checksums.test.ts +191 -0
  200. package/test/src/storage_s3_compaction_lifecycle.test.ts +417 -0
  201. package/test/src/storage_s3_reading.test.ts +526 -0
  202. package/test/src/storage_s3_writing.test.ts +135 -0
  203. package/test/src/storage_sync.test.ts +1180 -73
  204. package/test/src/storeCurrentData.test.ts +227 -0
  205. package/test/src/util.ts +2 -1
  206. package/tsconfig.json +1 -4
  207. package/tsconfig.tsbuildinfo +1 -1
  208. package/dist/storage/implementation/BucketDefinitionMapping.d.ts +0 -15
  209. package/dist/storage/implementation/BucketDefinitionMapping.js +0 -58
  210. package/dist/storage/implementation/BucketDefinitionMapping.js.map +0 -1
  211. package/dist/storage/implementation/MongoPersistedSyncRules.d.ts +0 -14
  212. package/dist/storage/implementation/MongoPersistedSyncRules.js +0 -67
  213. package/dist/storage/implementation/MongoPersistedSyncRules.js.map +0 -1
  214. package/dist/storage/implementation/MongoPersistedSyncRulesContent.d.ts +0 -29
  215. package/dist/storage/implementation/MongoPersistedSyncRulesContent.js +0 -76
  216. package/dist/storage/implementation/MongoPersistedSyncRulesContent.js.map +0 -1
  217. package/dist/storage/implementation/common/MongoSyncBucketStorageContext.d.ts +0 -13
  218. package/dist/storage/implementation/common/MongoSyncBucketStorageContext.js +0 -2
  219. package/dist/storage/implementation/common/MongoSyncBucketStorageContext.js.map +0 -1
  220. package/dist/storage/implementation/common/SingleBucketStore.d.ts +0 -54
  221. package/dist/storage/implementation/common/SingleBucketStore.js +0 -3
  222. package/dist/storage/implementation/common/SingleBucketStore.js.map +0 -1
  223. package/dist/storage/implementation/v3/MongoParameterCompactorV3.d.ts +0 -9
  224. package/dist/storage/implementation/v3/MongoParameterCompactorV3.js +0 -18
  225. package/dist/storage/implementation/v3/MongoParameterCompactorV3.js.map +0 -1
  226. package/dist/storage/implementation/v3/MongoParameterLookupV3.d.ts +0 -4
  227. package/dist/storage/implementation/v3/MongoParameterLookupV3.js +0 -9
  228. package/dist/storage/implementation/v3/MongoParameterLookupV3.js.map +0 -1
  229. package/dist/storage/implementation/v3/SingleBucketStoreV3.d.ts +0 -18
  230. package/dist/storage/implementation/v3/SingleBucketStoreV3.js +0 -48
  231. package/dist/storage/implementation/v3/SingleBucketStoreV3.js.map +0 -1
  232. package/src/storage/implementation/BucketDefinitionMapping.ts +0 -75
  233. package/src/storage/implementation/MongoPersistedSyncRules.ts +0 -82
  234. package/src/storage/implementation/MongoPersistedSyncRulesContent.ts +0 -101
  235. package/src/storage/implementation/common/MongoSyncBucketStorageContext.ts +0 -15
  236. package/src/storage/implementation/common/SingleBucketStore.ts +0 -63
  237. package/src/storage/implementation/v3/MongoParameterCompactorV3.ts +0 -24
  238. package/src/storage/implementation/v3/MongoParameterLookupV3.ts +0 -11
  239. package/src/storage/implementation/v3/SingleBucketStoreV3.ts +0 -68
@@ -589,200 +589,6 @@ exports[`sync - mongodb > storage v1 > sync global data 1`] = `
589
589
  ]
590
590
  `;
591
591
 
592
- exports[`sync - mongodb > storage v1 > sync interrupts low-priority buckets on new checkpoints (2) 1`] = `
593
- [
594
- {
595
- "checkpoint": {
596
- "buckets": [
597
- {
598
- "bucket": "b0a[]",
599
- "checksum": -659831575,
600
- "count": 2000,
601
- "priority": 2,
602
- "subscriptions": [
603
- {
604
- "default": 0,
605
- },
606
- ],
607
- },
608
- {
609
- "bucket": "b0b[]",
610
- "checksum": -659831575,
611
- "count": 2000,
612
- "priority": 2,
613
- "subscriptions": [
614
- {
615
- "default": 1,
616
- },
617
- ],
618
- },
619
- {
620
- "bucket": "b1[]",
621
- "checksum": -1096116670,
622
- "count": 1,
623
- "priority": 1,
624
- "subscriptions": [
625
- {
626
- "default": 2,
627
- },
628
- ],
629
- },
630
- ],
631
- "last_op_id": "4001",
632
- "streams": [
633
- {
634
- "errors": [],
635
- "is_default": true,
636
- "name": "b0a",
637
- },
638
- {
639
- "errors": [],
640
- "is_default": true,
641
- "name": "b0b",
642
- },
643
- {
644
- "errors": [],
645
- "is_default": true,
646
- "name": "b1",
647
- },
648
- ],
649
- "write_checkpoint": undefined,
650
- },
651
- },
652
- {
653
- "data": {
654
- "after": "0",
655
- "bucket": "b1[]",
656
- "data": undefined,
657
- "has_more": false,
658
- "next_after": "1",
659
- },
660
- },
661
- {
662
- "partial_checkpoint_complete": {
663
- "last_op_id": "4001",
664
- "priority": 1,
665
- },
666
- },
667
- {
668
- "data": {
669
- "after": "0",
670
- "bucket": "b0a[]",
671
- "data": undefined,
672
- "has_more": true,
673
- "next_after": "2000",
674
- },
675
- },
676
- {
677
- "data": {
678
- "after": "2000",
679
- "bucket": "b0a[]",
680
- "data": undefined,
681
- "has_more": true,
682
- "next_after": "4000",
683
- },
684
- },
685
- {
686
- "checkpoint_diff": {
687
- "last_op_id": "4004",
688
- "removed_buckets": [],
689
- "updated_buckets": [
690
- {
691
- "bucket": "b0a[]",
692
- "checksum": 883076828,
693
- "count": 2001,
694
- "priority": 2,
695
- "subscriptions": [
696
- {
697
- "default": 0,
698
- },
699
- ],
700
- },
701
- {
702
- "bucket": "b0b[]",
703
- "checksum": 883076828,
704
- "count": 2001,
705
- "priority": 2,
706
- "subscriptions": [
707
- {
708
- "default": 1,
709
- },
710
- ],
711
- },
712
- {
713
- "bucket": "b1[]",
714
- "checksum": 1841937527,
715
- "count": 2,
716
- "priority": 1,
717
- "subscriptions": [
718
- {
719
- "default": 2,
720
- },
721
- ],
722
- },
723
- ],
724
- "write_checkpoint": undefined,
725
- },
726
- },
727
- {
728
- "data": {
729
- "after": "1",
730
- "bucket": "b1[]",
731
- "data": undefined,
732
- "has_more": false,
733
- "next_after": "4002",
734
- },
735
- },
736
- {
737
- "partial_checkpoint_complete": {
738
- "last_op_id": "4004",
739
- "priority": 1,
740
- },
741
- },
742
- {
743
- "data": {
744
- "after": "4000",
745
- "bucket": "b0a[]",
746
- "data": undefined,
747
- "has_more": false,
748
- "next_after": "4003",
749
- },
750
- },
751
- {
752
- "data": {
753
- "after": "0",
754
- "bucket": "b0b[]",
755
- "data": undefined,
756
- "has_more": true,
757
- "next_after": "1999",
758
- },
759
- },
760
- {
761
- "data": {
762
- "after": "1999",
763
- "bucket": "b0b[]",
764
- "data": undefined,
765
- "has_more": true,
766
- "next_after": "3999",
767
- },
768
- },
769
- {
770
- "data": {
771
- "after": "3999",
772
- "bucket": "b0b[]",
773
- "data": undefined,
774
- "has_more": false,
775
- "next_after": "4004",
776
- },
777
- },
778
- {
779
- "checkpoint_complete": {
780
- "last_op_id": "4004",
781
- },
782
- },
783
- ]
784
- `;
785
-
786
592
  exports[`sync - mongodb > storage v1 > sync legacy non-raw data 1`] = `
787
593
  [
788
594
  {
@@ -1778,200 +1584,6 @@ exports[`sync - mongodb > storage v2 > sync global data 1`] = `
1778
1584
  ]
1779
1585
  `;
1780
1586
 
1781
- exports[`sync - mongodb > storage v2 > sync interrupts low-priority buckets on new checkpoints (2) 1`] = `
1782
- [
1783
- {
1784
- "checkpoint": {
1785
- "buckets": [
1786
- {
1787
- "bucket": "1#b0a[]",
1788
- "checksum": -659831575,
1789
- "count": 2000,
1790
- "priority": 2,
1791
- "subscriptions": [
1792
- {
1793
- "default": 0,
1794
- },
1795
- ],
1796
- },
1797
- {
1798
- "bucket": "1#b0b[]",
1799
- "checksum": -659831575,
1800
- "count": 2000,
1801
- "priority": 2,
1802
- "subscriptions": [
1803
- {
1804
- "default": 1,
1805
- },
1806
- ],
1807
- },
1808
- {
1809
- "bucket": "1#b1[]",
1810
- "checksum": -1096116670,
1811
- "count": 1,
1812
- "priority": 1,
1813
- "subscriptions": [
1814
- {
1815
- "default": 2,
1816
- },
1817
- ],
1818
- },
1819
- ],
1820
- "last_op_id": "4001",
1821
- "streams": [
1822
- {
1823
- "errors": [],
1824
- "is_default": true,
1825
- "name": "b0a",
1826
- },
1827
- {
1828
- "errors": [],
1829
- "is_default": true,
1830
- "name": "b0b",
1831
- },
1832
- {
1833
- "errors": [],
1834
- "is_default": true,
1835
- "name": "b1",
1836
- },
1837
- ],
1838
- "write_checkpoint": undefined,
1839
- },
1840
- },
1841
- {
1842
- "data": {
1843
- "after": "0",
1844
- "bucket": "1#b1[]",
1845
- "data": undefined,
1846
- "has_more": false,
1847
- "next_after": "1",
1848
- },
1849
- },
1850
- {
1851
- "partial_checkpoint_complete": {
1852
- "last_op_id": "4001",
1853
- "priority": 1,
1854
- },
1855
- },
1856
- {
1857
- "data": {
1858
- "after": "0",
1859
- "bucket": "1#b0a[]",
1860
- "data": undefined,
1861
- "has_more": true,
1862
- "next_after": "2000",
1863
- },
1864
- },
1865
- {
1866
- "data": {
1867
- "after": "2000",
1868
- "bucket": "1#b0a[]",
1869
- "data": undefined,
1870
- "has_more": true,
1871
- "next_after": "4000",
1872
- },
1873
- },
1874
- {
1875
- "checkpoint_diff": {
1876
- "last_op_id": "4004",
1877
- "removed_buckets": [],
1878
- "updated_buckets": [
1879
- {
1880
- "bucket": "1#b0a[]",
1881
- "checksum": 883076828,
1882
- "count": 2001,
1883
- "priority": 2,
1884
- "subscriptions": [
1885
- {
1886
- "default": 0,
1887
- },
1888
- ],
1889
- },
1890
- {
1891
- "bucket": "1#b0b[]",
1892
- "checksum": 883076828,
1893
- "count": 2001,
1894
- "priority": 2,
1895
- "subscriptions": [
1896
- {
1897
- "default": 1,
1898
- },
1899
- ],
1900
- },
1901
- {
1902
- "bucket": "1#b1[]",
1903
- "checksum": 1841937527,
1904
- "count": 2,
1905
- "priority": 1,
1906
- "subscriptions": [
1907
- {
1908
- "default": 2,
1909
- },
1910
- ],
1911
- },
1912
- ],
1913
- "write_checkpoint": undefined,
1914
- },
1915
- },
1916
- {
1917
- "data": {
1918
- "after": "1",
1919
- "bucket": "1#b1[]",
1920
- "data": undefined,
1921
- "has_more": false,
1922
- "next_after": "4002",
1923
- },
1924
- },
1925
- {
1926
- "partial_checkpoint_complete": {
1927
- "last_op_id": "4004",
1928
- "priority": 1,
1929
- },
1930
- },
1931
- {
1932
- "data": {
1933
- "after": "4000",
1934
- "bucket": "1#b0a[]",
1935
- "data": undefined,
1936
- "has_more": false,
1937
- "next_after": "4003",
1938
- },
1939
- },
1940
- {
1941
- "data": {
1942
- "after": "0",
1943
- "bucket": "1#b0b[]",
1944
- "data": undefined,
1945
- "has_more": true,
1946
- "next_after": "1999",
1947
- },
1948
- },
1949
- {
1950
- "data": {
1951
- "after": "1999",
1952
- "bucket": "1#b0b[]",
1953
- "data": undefined,
1954
- "has_more": true,
1955
- "next_after": "3999",
1956
- },
1957
- },
1958
- {
1959
- "data": {
1960
- "after": "3999",
1961
- "bucket": "1#b0b[]",
1962
- "data": undefined,
1963
- "has_more": false,
1964
- "next_after": "4004",
1965
- },
1966
- },
1967
- {
1968
- "checkpoint_complete": {
1969
- "last_op_id": "4004",
1970
- },
1971
- },
1972
- ]
1973
- `;
1974
-
1975
1587
  exports[`sync - mongodb > storage v2 > sync legacy non-raw data 1`] = `
1976
1588
  [
1977
1589
  {
@@ -2384,7 +1996,7 @@ exports[`sync - mongodb > storage v3 > can override priority when subscribing to
2384
1996
  "checkpoint": {
2385
1997
  "buckets": [
2386
1998
  {
2387
- "bucket": "1#todos|0["a"]",
1999
+ "bucket": "todos|0.1.1["a"]",
2388
2000
  "checksum": -1712802421,
2389
2001
  "count": 1,
2390
2002
  "priority": 0,
@@ -2398,7 +2010,7 @@ exports[`sync - mongodb > storage v3 > can override priority when subscribing to
2398
2010
  ],
2399
2011
  },
2400
2012
  {
2401
- "bucket": "1#todos|0["b"]",
2013
+ "bucket": "todos|0.1.1["b"]",
2402
2014
  "checksum": -1291414318,
2403
2015
  "count": 1,
2404
2016
  "priority": 3,
@@ -2423,7 +2035,7 @@ exports[`sync - mongodb > storage v3 > can override priority when subscribing to
2423
2035
  {
2424
2036
  "data": {
2425
2037
  "after": "0",
2426
- "bucket": "1#todos|0["a"]",
2038
+ "bucket": "todos|0.1.1["a"]",
2427
2039
  "data": [
2428
2040
  {
2429
2041
  "checksum": 2582164875,
@@ -2448,7 +2060,7 @@ exports[`sync - mongodb > storage v3 > can override priority when subscribing to
2448
2060
  {
2449
2061
  "data": {
2450
2062
  "after": "0",
2451
- "bucket": "1#todos|0["b"]",
2063
+ "bucket": "todos|0.1.1["b"]",
2452
2064
  "data": [
2453
2065
  {
2454
2066
  "checksum": 3003552978,
@@ -2478,7 +2090,7 @@ exports[`sync - mongodb > storage v3 > compacting data - invalidate checkpoint 1
2478
2090
  "checkpoint": {
2479
2091
  "buckets": [
2480
2092
  {
2481
- "bucket": "1#mybucket[]",
2093
+ "bucket": "mybucket.1.1[]",
2482
2094
  "checksum": -93886621,
2483
2095
  "count": 2,
2484
2096
  "priority": 3,
@@ -2508,7 +2120,7 @@ exports[`sync - mongodb > storage v3 > compacting data - invalidate checkpoint 2
2508
2120
  {
2509
2121
  "data": {
2510
2122
  "after": "0",
2511
- "bucket": "1#mybucket[]",
2123
+ "bucket": "mybucket.1.1[]",
2512
2124
  "data": [
2513
2125
  {
2514
2126
  "checksum": -93886621,
@@ -2526,7 +2138,7 @@ exports[`sync - mongodb > storage v3 > compacting data - invalidate checkpoint 2
2526
2138
  "removed_buckets": [],
2527
2139
  "updated_buckets": [
2528
2140
  {
2529
- "bucket": "1#mybucket[]",
2141
+ "bucket": "mybucket.1.1[]",
2530
2142
  "checksum": 499012468,
2531
2143
  "count": 4,
2532
2144
  "priority": 3,
@@ -2543,7 +2155,7 @@ exports[`sync - mongodb > storage v3 > compacting data - invalidate checkpoint 2
2543
2155
  {
2544
2156
  "data": {
2545
2157
  "after": "2",
2546
- "bucket": "1#mybucket[]",
2158
+ "bucket": "mybucket.1.1[]",
2547
2159
  "data": [
2548
2160
  {
2549
2161
  "checksum": 1859363232,
@@ -2582,7 +2194,7 @@ exports[`sync - mongodb > storage v3 > encodes sync rules id in buckets for stre
2582
2194
  "checkpoint": {
2583
2195
  "buckets": [
2584
2196
  {
2585
- "bucket": "1#test|0[]",
2197
+ "bucket": "test|0.1.1[]",
2586
2198
  "checksum": 920318466,
2587
2199
  "count": 1,
2588
2200
  "priority": 3,
@@ -2607,7 +2219,7 @@ exports[`sync - mongodb > storage v3 > encodes sync rules id in buckets for stre
2607
2219
  {
2608
2220
  "data": {
2609
2221
  "after": "0",
2610
- "bucket": "1#test|0[]",
2222
+ "bucket": "test|0.1.1[]",
2611
2223
  "data": [
2612
2224
  {
2613
2225
  "checksum": 920318466,
@@ -2637,7 +2249,7 @@ exports[`sync - mongodb > storage v3 > encodes sync rules id in buckets for stre
2637
2249
  "checkpoint": {
2638
2250
  "buckets": [
2639
2251
  {
2640
- "bucket": "2#test2|0[]",
2252
+ "bucket": "test2|0.2.1[]",
2641
2253
  "checksum": 920318466,
2642
2254
  "count": 1,
2643
2255
  "priority": 3,
@@ -2662,7 +2274,7 @@ exports[`sync - mongodb > storage v3 > encodes sync rules id in buckets for stre
2662
2274
  {
2663
2275
  "data": {
2664
2276
  "after": "0",
2665
- "bucket": "2#test2|0[]",
2277
+ "bucket": "test2|0.2.1[]",
2666
2278
  "data": [
2667
2279
  {
2668
2280
  "checksum": 920318466,
@@ -2700,7 +2312,7 @@ exports[`sync - mongodb > storage v3 > expiring token 1`] = `
2700
2312
  "checkpoint": {
2701
2313
  "buckets": [
2702
2314
  {
2703
- "bucket": "1#mybucket[]",
2315
+ "bucket": "mybucket.1.1[]",
2704
2316
  "checksum": 0,
2705
2317
  "count": 0,
2706
2318
  "priority": 3,
@@ -2744,7 +2356,7 @@ exports[`sync - mongodb > storage v3 > sends checkpoint complete line for empty
2744
2356
  "checkpoint": {
2745
2357
  "buckets": [
2746
2358
  {
2747
- "bucket": "1#mybucket[]",
2359
+ "bucket": "mybucket.1.1[]",
2748
2360
  "checksum": -1221282404,
2749
2361
  "count": 1,
2750
2362
  "priority": 3,
@@ -2769,7 +2381,7 @@ exports[`sync - mongodb > storage v3 > sends checkpoint complete line for empty
2769
2381
  {
2770
2382
  "data": {
2771
2383
  "after": "0",
2772
- "bucket": "1#mybucket[]",
2384
+ "bucket": "mybucket.1.1[]",
2773
2385
  "data": [
2774
2386
  {
2775
2387
  "checksum": 3073684892,
@@ -2813,7 +2425,7 @@ exports[`sync - mongodb > storage v3 > sync buckets in order 1`] = `
2813
2425
  "checkpoint": {
2814
2426
  "buckets": [
2815
2427
  {
2816
- "bucket": "1#b0[]",
2428
+ "bucket": "b0.1.1[]",
2817
2429
  "checksum": 920318466,
2818
2430
  "count": 1,
2819
2431
  "priority": 2,
@@ -2824,7 +2436,7 @@ exports[`sync - mongodb > storage v3 > sync buckets in order 1`] = `
2824
2436
  ],
2825
2437
  },
2826
2438
  {
2827
- "bucket": "1#b1[]",
2439
+ "bucket": "b1.1.2[]",
2828
2440
  "checksum": -1382098757,
2829
2441
  "count": 1,
2830
2442
  "priority": 1,
@@ -2854,7 +2466,7 @@ exports[`sync - mongodb > storage v3 > sync buckets in order 1`] = `
2854
2466
  {
2855
2467
  "data": {
2856
2468
  "after": "0",
2857
- "bucket": "1#b1[]",
2469
+ "bucket": "b1.1.2[]",
2858
2470
  "data": [
2859
2471
  {
2860
2472
  "checksum": 2912868539,
@@ -2879,7 +2491,7 @@ exports[`sync - mongodb > storage v3 > sync buckets in order 1`] = `
2879
2491
  {
2880
2492
  "data": {
2881
2493
  "after": "0",
2882
- "bucket": "1#b0[]",
2494
+ "bucket": "b0.1.1[]",
2883
2495
  "data": [
2884
2496
  {
2885
2497
  "checksum": 920318466,
@@ -2909,7 +2521,7 @@ exports[`sync - mongodb > storage v3 > sync global data 1`] = `
2909
2521
  "checkpoint": {
2910
2522
  "buckets": [
2911
2523
  {
2912
- "bucket": "1#mybucket[]",
2524
+ "bucket": "mybucket.1.1[]",
2913
2525
  "checksum": -93886621,
2914
2526
  "count": 2,
2915
2527
  "priority": 3,
@@ -2934,7 +2546,7 @@ exports[`sync - mongodb > storage v3 > sync global data 1`] = `
2934
2546
  {
2935
2547
  "data": {
2936
2548
  "after": "0",
2937
- "bucket": "1#mybucket[]",
2549
+ "bucket": "mybucket.1.1[]",
2938
2550
  "data": [
2939
2551
  {
2940
2552
  "checksum": 920318466,
@@ -2967,207 +2579,13 @@ exports[`sync - mongodb > storage v3 > sync global data 1`] = `
2967
2579
  ]
2968
2580
  `;
2969
2581
 
2970
- exports[`sync - mongodb > storage v3 > sync interrupts low-priority buckets on new checkpoints (2) 1`] = `
2971
- [
2972
- {
2973
- "checkpoint": {
2974
- "buckets": [
2975
- {
2976
- "bucket": "1#b0a[]",
2977
- "checksum": -659831575,
2978
- "count": 2000,
2979
- "priority": 2,
2980
- "subscriptions": [
2981
- {
2982
- "default": 0,
2983
- },
2984
- ],
2985
- },
2986
- {
2987
- "bucket": "1#b0b[]",
2988
- "checksum": -659831575,
2989
- "count": 2000,
2990
- "priority": 2,
2991
- "subscriptions": [
2992
- {
2993
- "default": 1,
2994
- },
2995
- ],
2996
- },
2997
- {
2998
- "bucket": "1#b1[]",
2999
- "checksum": -1096116670,
3000
- "count": 1,
3001
- "priority": 1,
3002
- "subscriptions": [
3003
- {
3004
- "default": 2,
3005
- },
3006
- ],
3007
- },
3008
- ],
3009
- "last_op_id": "4001",
3010
- "streams": [
3011
- {
3012
- "errors": [],
3013
- "is_default": true,
3014
- "name": "b0a",
3015
- },
3016
- {
3017
- "errors": [],
3018
- "is_default": true,
3019
- "name": "b0b",
3020
- },
3021
- {
3022
- "errors": [],
3023
- "is_default": true,
3024
- "name": "b1",
3025
- },
3026
- ],
3027
- "write_checkpoint": undefined,
3028
- },
3029
- },
3030
- {
3031
- "data": {
3032
- "after": "0",
3033
- "bucket": "1#b1[]",
3034
- "data": undefined,
3035
- "has_more": false,
3036
- "next_after": "1",
3037
- },
3038
- },
3039
- {
3040
- "partial_checkpoint_complete": {
3041
- "last_op_id": "4001",
3042
- "priority": 1,
3043
- },
3044
- },
3045
- {
3046
- "data": {
3047
- "after": "0",
3048
- "bucket": "1#b0a[]",
3049
- "data": undefined,
3050
- "has_more": true,
3051
- "next_after": "2000",
3052
- },
3053
- },
3054
- {
3055
- "data": {
3056
- "after": "2000",
3057
- "bucket": "1#b0a[]",
3058
- "data": undefined,
3059
- "has_more": true,
3060
- "next_after": "4000",
3061
- },
3062
- },
3063
- {
3064
- "checkpoint_diff": {
3065
- "last_op_id": "4004",
3066
- "removed_buckets": [],
3067
- "updated_buckets": [
3068
- {
3069
- "bucket": "1#b0a[]",
3070
- "checksum": 883076828,
3071
- "count": 2001,
3072
- "priority": 2,
3073
- "subscriptions": [
3074
- {
3075
- "default": 0,
3076
- },
3077
- ],
3078
- },
3079
- {
3080
- "bucket": "1#b0b[]",
3081
- "checksum": 883076828,
3082
- "count": 2001,
3083
- "priority": 2,
3084
- "subscriptions": [
3085
- {
3086
- "default": 1,
3087
- },
3088
- ],
3089
- },
3090
- {
3091
- "bucket": "1#b1[]",
3092
- "checksum": 1841937527,
3093
- "count": 2,
3094
- "priority": 1,
3095
- "subscriptions": [
3096
- {
3097
- "default": 2,
3098
- },
3099
- ],
3100
- },
3101
- ],
3102
- "write_checkpoint": undefined,
3103
- },
3104
- },
3105
- {
3106
- "data": {
3107
- "after": "1",
3108
- "bucket": "1#b1[]",
3109
- "data": undefined,
3110
- "has_more": false,
3111
- "next_after": "4002",
3112
- },
3113
- },
3114
- {
3115
- "partial_checkpoint_complete": {
3116
- "last_op_id": "4004",
3117
- "priority": 1,
3118
- },
3119
- },
3120
- {
3121
- "data": {
3122
- "after": "4000",
3123
- "bucket": "1#b0a[]",
3124
- "data": undefined,
3125
- "has_more": false,
3126
- "next_after": "4003",
3127
- },
3128
- },
3129
- {
3130
- "data": {
3131
- "after": "0",
3132
- "bucket": "1#b0b[]",
3133
- "data": undefined,
3134
- "has_more": true,
3135
- "next_after": "1999",
3136
- },
3137
- },
3138
- {
3139
- "data": {
3140
- "after": "1999",
3141
- "bucket": "1#b0b[]",
3142
- "data": undefined,
3143
- "has_more": true,
3144
- "next_after": "3999",
3145
- },
3146
- },
3147
- {
3148
- "data": {
3149
- "after": "3999",
3150
- "bucket": "1#b0b[]",
3151
- "data": undefined,
3152
- "has_more": false,
3153
- "next_after": "4004",
3154
- },
3155
- },
3156
- {
3157
- "checkpoint_complete": {
3158
- "last_op_id": "4004",
3159
- },
3160
- },
3161
- ]
3162
- `;
3163
-
3164
2582
  exports[`sync - mongodb > storage v3 > sync legacy non-raw data 1`] = `
3165
2583
  [
3166
2584
  {
3167
2585
  "checkpoint": {
3168
2586
  "buckets": [
3169
2587
  {
3170
- "bucket": "1#mybucket[]",
2588
+ "bucket": "mybucket.1.1[]",
3171
2589
  "checksum": -852817836,
3172
2590
  "count": 1,
3173
2591
  "priority": 3,
@@ -3192,7 +2610,7 @@ exports[`sync - mongodb > storage v3 > sync legacy non-raw data 1`] = `
3192
2610
  {
3193
2611
  "data": {
3194
2612
  "after": "0",
3195
- "bucket": "1#mybucket[]",
2613
+ "bucket": "mybucket.1.1[]",
3196
2614
  "data": [
3197
2615
  {
3198
2616
  "checksum": 3442149460n,
@@ -3227,7 +2645,7 @@ exports[`sync - mongodb > storage v3 > sync updates to data query only 1`] = `
3227
2645
  "checkpoint": {
3228
2646
  "buckets": [
3229
2647
  {
3230
- "bucket": "1#by_user["user1"]",
2648
+ "bucket": "by_user.1.1["user1"]",
3231
2649
  "checksum": 0,
3232
2650
  "count": 0,
3233
2651
  "priority": 3,
@@ -3265,7 +2683,7 @@ exports[`sync - mongodb > storage v3 > sync updates to data query only 2`] = `
3265
2683
  "removed_buckets": [],
3266
2684
  "updated_buckets": [
3267
2685
  {
3268
- "bucket": "1#by_user["user1"]",
2686
+ "bucket": "by_user.1.1["user1"]",
3269
2687
  "checksum": 1418351250,
3270
2688
  "count": 1,
3271
2689
  "priority": 3,
@@ -3281,8 +2699,8 @@ exports[`sync - mongodb > storage v3 > sync updates to data query only 2`] = `
3281
2699
  },
3282
2700
  {
3283
2701
  "data": {
3284
- "after": "0",
3285
- "bucket": "1#by_user["user1"]",
2702
+ "after": "1",
2703
+ "bucket": "by_user.1.1["user1"]",
3286
2704
  "data": [
3287
2705
  {
3288
2706
  "checksum": 1418351250,
@@ -3312,7 +2730,7 @@ exports[`sync - mongodb > storage v3 > sync updates to global data 1`] = `
3312
2730
  "checkpoint": {
3313
2731
  "buckets": [
3314
2732
  {
3315
- "bucket": "1#mybucket[]",
2733
+ "bucket": "mybucket.1.1[]",
3316
2734
  "checksum": 0,
3317
2735
  "count": 0,
3318
2736
  "priority": 3,
@@ -3350,7 +2768,7 @@ exports[`sync - mongodb > storage v3 > sync updates to global data 2`] = `
3350
2768
  "removed_buckets": [],
3351
2769
  "updated_buckets": [
3352
2770
  {
3353
- "bucket": "1#mybucket[]",
2771
+ "bucket": "mybucket.1.1[]",
3354
2772
  "checksum": 920318466,
3355
2773
  "count": 1,
3356
2774
  "priority": 3,
@@ -3367,7 +2785,7 @@ exports[`sync - mongodb > storage v3 > sync updates to global data 2`] = `
3367
2785
  {
3368
2786
  "data": {
3369
2787
  "after": "0",
3370
- "bucket": "1#mybucket[]",
2788
+ "bucket": "mybucket.1.1[]",
3371
2789
  "data": [
3372
2790
  {
3373
2791
  "checksum": 920318466,
@@ -3399,7 +2817,7 @@ exports[`sync - mongodb > storage v3 > sync updates to global data 3`] = `
3399
2817
  "removed_buckets": [],
3400
2818
  "updated_buckets": [
3401
2819
  {
3402
- "bucket": "1#mybucket[]",
2820
+ "bucket": "mybucket.1.1[]",
3403
2821
  "checksum": -93886621,
3404
2822
  "count": 2,
3405
2823
  "priority": 3,
@@ -3416,7 +2834,7 @@ exports[`sync - mongodb > storage v3 > sync updates to global data 3`] = `
3416
2834
  {
3417
2835
  "data": {
3418
2836
  "after": "1",
3419
- "bucket": "1#mybucket[]",
2837
+ "bucket": "mybucket.1.1[]",
3420
2838
  "data": [
3421
2839
  {
3422
2840
  "checksum": 3280762209,
@@ -3472,7 +2890,7 @@ exports[`sync - mongodb > storage v3 > sync updates to parameter query + data 2`
3472
2890
  "removed_buckets": [],
3473
2891
  "updated_buckets": [
3474
2892
  {
3475
- "bucket": "1#by_user["user1"]",
2893
+ "bucket": "by_user.1.1["user1"]",
3476
2894
  "checksum": 1418351250,
3477
2895
  "count": 1,
3478
2896
  "priority": 3,
@@ -3489,7 +2907,7 @@ exports[`sync - mongodb > storage v3 > sync updates to parameter query + data 2`
3489
2907
  {
3490
2908
  "data": {
3491
2909
  "after": "0",
3492
- "bucket": "1#by_user["user1"]",
2910
+ "bucket": "by_user.1.1["user1"]",
3493
2911
  "data": [
3494
2912
  {
3495
2913
  "checksum": 1418351250,
@@ -3545,7 +2963,7 @@ exports[`sync - mongodb > storage v3 > sync updates to parameter query only 2`]
3545
2963
  "removed_buckets": [],
3546
2964
  "updated_buckets": [
3547
2965
  {
3548
- "bucket": "1#by_user["user1"]",
2966
+ "bucket": "by_user.1.1["user1"]",
3549
2967
  "checksum": 0,
3550
2968
  "count": 0,
3551
2969
  "priority": 3,