The event emitter db is a simple version of a document database implemented using log structured storage. It serves as a good example of utilizing events and asynchronous functions cohesively as well as the fundamentals of database design.
- Use
db-read-stream
infind-stream
/find
- Add
update
andupdateMany
methods - Use a
write-stream
forinsertMany
instead of buffering theblob