用于Node.js的轻量级JavaScript数据库 [英] Lightweight Javascript DB for use in Node.js

查看:877
本文介绍了用于Node.js的轻量级JavaScript数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道一个轻量级的,耐用的数据库,用Javascript编写,可以用于Node.js.



我不想要重量的(伟大的)解决方案像Mongo或Couch。一个简单的,在内存中的JS数据库有能力持久到磁盘作为一个文件就足够了。我只用它来存储少量的数据。



要求:




  • 可以使用node.js服务器应用程序

  • 可将整个数据库保存到磁盘并在失败后恢复

  • 不需要原子写入或事务支持

  • 快速查询和排序会很好

  • 只需要支持小型数据卷,总计最多可达1MB



我遇到了TAFFY db到目前为止,但它似乎没有优化用于Node.js.



感谢

解决方案

p>我只熟悉Mongo和Couch,但也有一个名为持久性。 / p>

Anybody know of a lightweight yet durable database, written in Javascript, that can be used with Node.js.

I don't want the 'weight' of (great) solutions like Mongo or Couch. A simple, in memory JS database with the capability to persist to disk as a file would be enough. I would only use it to store small amounts of data.

Requirements:

  • can run in process with a node.js server application
  • can save the whole database to disk and recover after a failure
  • NO need for atomic writes or transaction supports
  • fast queries and sorting would be nice
  • only needs to support small data volumes, up to 1MB in total

I've come across TAFFY db so far but it really doesn't seem optimized for use in Node.js. Anybody seen what I'm looking for out there?

Thanks

解决方案

I'm only familiar with Mongo and Couch, but there's also one named Persistence.

这篇关于用于Node.js的轻量级JavaScript数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆