书栈网 · BookStack 本次搜索耗时 0.021 秒,为您找到 52 个相关结果.
  • Adding authentication

    Add authentication Generate authentication Create a user and log in Create the user Get a token Securing the messages service Securing real-time events What’s next? Add ...
  • 六、API

    六、API 1、new Datastore(options) 2、db.insert(doc, callback) 3、db.find(query, callback) 4、db.findOne(query, callback) 5、db.update(query, update, options, callback) 6、db.remove(qu...
  • 五、源码简析

    五、源码简析 五、源码简析 想要更深入的理解 NeDB,就需要了解它是如何实现的。我这里给出一些我阅读源码时记忆比较深刻的几个点。 1、所有改变数据的操作 (indert,update,remove),都会触发 persistence.persistNewState 方法,比如可以看一下 datastore.js 第 265-268 行的 Data...
  • Performance

    724 2020-01-15 《NeDB Document》
    Performance Speed Memory footprint Performance Speed NeDB is not intended to be a replacement of large-scale databases such as MongoDB, and as such was not designed for spe...
  • A Chat Application

    Creating a Chat Application Creating a Chat Application Well alright! Let’s build our first Feathers app! We’re going to build a real-time chat app with NeDB as the database. ...
  • Pull requests

    728 2020-01-15 《NeDB Document》
    Pull requests Pull requests Important: I consider NeDB to be feature-complete, i.e. it does everything I think it should and nothing more. As a general rule I will not accept p...
  • Array fields

    864 2020-01-15 《NeDB Document》
    Array fields Array fields When a field in a document is an array, NeDB first tries to see if the query value is an array to perform an exact match, then whether there is an arr...
  • Persistence

    616 2020-01-15 《NeDB Document》
    Persistence Persistence Under the hood, NeDB's persistence uses an append-only format, meaning that all updates and deletes actually result in lines added at the end of the dat...
  • 9、db.persistence.compactDatafile

    9、db.persistence.compactDatafile 9、db.persistence.compactDatafile 作用: 为了性能考虑,NeDB 存储使用 append-only 格式,意味着所有的更改和删除操作其实都是被添加到了文件末尾。每次加载数据库时,数据库会自动被压缩,才能拿到规范的文档集。 也可以手动调用压缩方法 d...
  • Databases

    Databases An in-memory database In the browser Querying As a REST API What’s next? Databases In the services chapter we created a custom in-memory messages service that c...