Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T19:17:13.000Z (over 3 years ago)
- Last Synced: 2024-08-01T13:29:08.365Z (6 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
[![Build Status](https://travis-ci.com/gjongenelen/eh-mongodb.svg?branch=master)](https://travis-ci.com/gjongenelen/eh-mongodb)
[![codecov](https://codecov.io/gh/gjongenelen/eh-mongodb/branch/master/graph/badge.svg)](https://codecov.io/gh/gjongenelen/eh-mongodb)
[![GoDoc](https://godoc.org/github.com/gjongenelen/eh-mongodb?status.svg)](https://godoc.org/github.com/gjongenelen/eh-mongodb)
[![Go Report Card](https://goreportcard.com/badge/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.