JSPM

  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q46533F
  • License MIT

responsible of synchronizing duplicate data between collections

Package Exports

  • mongodb-data-sync

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongodb-data-sync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mongodb-data-sync

In MongoDB having part od the same data in multiple collections is not an uncommon thing,
It is rely efficient for searching , sorting or event for just project fields.
handling this duplicated data can be a pain in the ass , you will have to create jobs to sync the data , or do updates in place what makes the ref collection need to know about all the collections needed data from him . and we all know the bugs that can lead to.

mongodb-data-sync comes to solve this problem by letting you declare the dependencies where this can be close to your schema and almost real time data sync
it uses the power of the mongodb change stream to make the sync durable and performance efficient

dont use high availability it was designed to work as a single process and knows from where to continue after restart