gjongenelen / eh-mongodb

Improved MongoDB driver for Event Horizon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status codecov GoDoc Go Report Card

eh-mongodb

This package is based on the default mongo-driver in EventHorizon. Mongo has a document limit of 16MB 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.

About

Improved MongoDB driver for Event Horizon

License:Apache License 2.0


Languages

Language:Go 95.1%Language:Makefile 4.9%