https://github.com/gjongenelen/eh-mongodb
Improved MongoDB driver for Event Horizon
https://github.com/gjongenelen/eh-mongodb
Last synced: 3 months ago
JSON representation
Improved MongoDB driver for Event Horizon
- Host: GitHub
- URL: https://github.com/gjongenelen/eh-mongodb
- Owner: gjongenelen
- License: apache-2.0
- Created: 2020-06-23T12:28:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T19:17:13.000Z (almost 4 years ago)
- Last Synced: 2024-11-04T15:52:32.373Z (8 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-ccamel - gjongenelen/eh-mongodb - Improved MongoDB driver for Event Horizon (Go)
README
[](https://travis-ci.com/gjongenelen/eh-mongodb)
[](https://codecov.io/gh/gjongenelen/eh-mongodb)
[](https://godoc.org/github.com/gjongenelen/eh-mongodb)
[](https://goreportcard.com/report/github.com/gjongenelen/eh-mongodb)# eh-mongodb
This package is based on the default mongo-driver in [EventHorizon](https://github.com/looplab/eventhorizon).
Mongo has a [document limit of 16MB](https://docs.mongodb.com/manual/reference/limits/) which can easily be reached in big projects, resulting in aggregates with many events not being saved.The default mongo-driver in EventHorizon stores an aggregate with its events in one single document, increasing the size of the document on each event. This driver creates a new document per event, preventing documents from growing and reaching the limit mentioned above.