简体   繁体   English

DB文件系统的规格?

[英]Specifications for DB file systems?

Is there any specifications (online resources ) avaialbe for DB file system development. DB文件系统开发是否有任何规范(在线资源)。 Like how the data file is organized and algorithms used for traversal, indexing. 就像数据文件的组织方式以及用于遍历,索引的算法一样。

Am in a task to build a system to handle the operations like storing and retrieving the documents(JSON) in a custom file structure.. 我的任务是构建一个系统来处理诸如在自定义文件结构中存储和检索文档(JSON)之类的操作。

I know there are No-SQL alternatives like CouchDB & mongoDB available, But my requirement is simple and its just storing & retrieval (no querying) and wanted to do it in .Net. 我知道有可用的CouchDB和mongoDB之类的No-SQL替代品,但是我的要求很简单,它只存储和检索(无需查询),并希望在.Net中进行。

Usually, databases use the B-tree data structure, plus a paging mechanism to handle space acquisition efficiently. 通常,数据库使用B树数据结构以及分页机制来有效处理空间获取。 But that's a complex task and you can leave all that hard work to a well 但这是一项复杂的任务,您可以将所有艰苦的工作留给井
tested engine, like SQLite . 经过测试的引擎,例如SQLite

Anyway, 2 simple ad hoc methods: 无论如何,有两种简单的临时方法:

  1. Keep records sorted in a file, so you'll be able to use binary search. 保持记录在文件中排序,这样您就可以使用二进制搜索。
  2. Use one file with data records and a separate index file, with record offsets. 使用一个带有数据记录的文件和一个单独的带有记录偏移量的索引文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM