zoukankan      html  css  js  c++  java
  • lokijs

    http://lokijs.org/#/

    500,000+ 1.1M ops/s. 
    A fast, in-memory document-oriented datastore for node.js, browser and cordova

    In-memory Javascript Datastore with Persistence

    What is LokiJS?

    • In-Browser NoSQL db with syncing and persisting
    • a Redis-style store an npm install away
    • Persistable NoSQL db for Cordova
    • Embeddable NoSQL db with Persistence for node-webkit

    LokiJS is an in-memory database which prioritises performance over everything 
    LokiJS supports field indexing for faster document access and performs really well (near 500,000 ops/s on an average dev machine) on those. Its built-in DynamicView class also enables to utilize indexes on data subsets for even faster performance. 
    DynamicView has the very handy feature of detecting changes in the database and recomputing itself to contain the most up-to-date data, and data is always readily available through the data() method.

    * read this to get an idea of LokiJS's performance.

    Among the features that make LokiJS attractive are:

      • Fast Performance
      • Replaces SQLite in Cordova, works as a session store in node.js, works an in-browser database with syncing capabilities
      • Indexing / Secondary Indexing / Unique Indexing
      • The "Dynamic View", a kind of "live filter"
      • Resultset with Fluent API
      • Persistence Adapters (with a built-in IndexedDB and node.js FS adapter)
      • Optional periodic autosave
      • changes API
      • Compound sort for sorting on multiple columns
      • Insert class instances and deserialize/ inflate objects into class instances
      • partial compatibility with MongoDB API
      • RethinkDB-style Joins
  • 相关阅读:
    瞬间从IT屌丝变大神——HTML规范
    瞬间从IT屌丝变大神——命名规则
    瞬间从IT屌丝变大神——分工安排
    写在开发前的话
    完全二叉树的权值
    无法更改电脑默认浏览器
    java语法错误,进行分析时已经到达文件结尾
    查找SHA1值
    关闭CPU 睿频方法
    Java idea 快捷键
  • 原文地址:https://www.cnblogs.com/softidea/p/5606816.html
Copyright © 2011-2022 走看看