MongoDB Adapter for ProophEventStore
- MongoDB >= 2.6.0
- PHP Mongo Extension >= 1.5.0
This adapter uses a transaction timeout of 50 secs by default.
The default write concern for this adapater is acknowledged and journaled (['w' => 1, 'j' => true]).
It's possible to change both values by injecting them into the constructor or by using the factory.
This adapter does not use the MongoDB ObjectId for its primary key, instead a UUID (string) is used.
When using MongoDB's sharding feature, simply set the "_id" as shard key.
For more information about sharding in MongoDB check the MongoDB manual.