loki.js



  • Seems interesting, looking for direct comparison to Mongo. Claims to support almost 500,000 ops/s.



  • Looks interesting, especially the DynamicView class.


  • Admin

    I'll echo that. Looks interesting alright. If it's drop-in compatible with MongoDB, then maybe we can natively support it with a few lines of code (wishful thinking though heh)



  • @julian said:

    I'll echo that. Looks interesting alright. If it's drop-in compatible with MongoDB, then maybe we can natively support it with a few lines of code (wishful thinking though heh)

    LokiJS draws inspiration from MongoDB and CouchDB, in that the API is similar (but not identical or compliant) to MongoDB and you can define your own views in a CouchDB style.

    Doesn't look like it could be a drop-in replacement, though should be easy to get it working.



  • ForerunnerDB (http://www.forerunnerdb.com) is closer to MongoDB IMHO (disclosure, I develop and maintain Forerunner). Node support in Loki looks more mature though at the moment. We are rapidly developing ForerunnerDB though. Running as a fully-featured DB server in Node will be available very soon and you can already use it as a module.



  • Hi, I'm the creator of LokiJS. Just dropping in to say that 1.1 will be released really soon, among other things we're gradually implementing mongodb api compatibility for simplicity of use for mongo users. However, DynamicView will remain the method of choice for fast access. Among other things we introduced there's prototoype deserialization (load your JSON into proper "class" instances), a Changes API that keeps track of changes for remote sync-ing, added indexeddb persistence (as well as the already present fs for node and cordova) and you can even write your own persistence plugins for as long as it supports a couple of methods.
    It is also interesting to note that LokiJS has gained a bit of popularity as a native replacement for redis (there's even an express loki store plugin on github), and yes, find operations on an indexed field on an average machine are still upwards of 500k/s
    Loki already runs as a server but in q1/q2 of 2015 we'll also add standalone capabilities with tcp and http wrappers.
    That said, I like ForerunnerDB too 🙂
    joe


  • Admin

    @techfort Nice! The closer you can get LokiJS to either Redis or Mongo, the easier we can integrate it into NodeBB as a separate db driver 🙂

    Edit: Speaking of which, does LokiJS need a forum? XD

    Edit 2: @coolbloke1324 Maybe ForerunnerDB too? :shipit:



  • @julian actually LokiJS may neeed a forum soon. I certainly didn't expect 1000 stars so it's kind of become a duty to maintain it properly.



  • Just dropping in to say 1.2 is out, with lots of goodies including angular integration.


 

| |