一个内存中的JavaScript数据库:TrollDB
jopen
10年前
TrollDB是一个优先考虑性能高于一切的内存的JavaScript数据库。它极快,你不会找到一个更快的内存的JavaScript数据库了,因此停止寻找。就用这个好了。
基本用法
First require the trolldb script:
<script type="text/javascript" src="trolldb.js"></script>
Insert
You can insert any form of structured data you like:
db.insert({"balance": 12345});
TrollDB will optimize this insert for performance.
Query
You can query for data with pattern matching.
db.query({"balance": undefined});
TrollDB will optimize this query for performance.
Update
You can update data with pattern matching.
db.update({"balance": undefined}, {"balance": 54321});
TrollDB will optimize this update for performance.
Delete
You can delete data with pattern matching.
db.delete({"balance": undefined});
TrollDB will optimize this delete for performance.