0.2.0 • Published 12 years ago

uebermongodb v0.2.0

Weekly downloads
7
License
-
Repository
-
Last release
12 years ago

#About

uebermongodb is a abstraction layer for databases. It turns every database into a simple key value store, at the moment we only support mysql and sqlite. uebermongodb uses a smart cache and buffer algorithm to make databases faster. Reads are cached and writes are done in a bulk. The bulk writing reduces the overhead of a database transaction. uebermongodb is a fork from ueberDB by Peter 'Pita' Martischka petermartischka@googlemail.com with additional support for MongoDB.

#Install

npm install uebermongodb

#Example

#How to add support for another database Look at sqlite_db.js and mysql_db.js, your module have to provide the same functions. Call it DATABASENAME_db.js and reimplement the functions for your database. If you think it works, test it with node benchmark.js DATABASENAME. Benchmark.js is benchmark and test at the same time. It tries to set 100000 values. You can pipe stderr to a file and will create a csv with benchmark results.

#License is Apache v2