Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Berkeley DB as a NoSQL

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to use Berkeley DB as a NoSQL, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

How to use BerkeleyDB as NoSQL

BerkeleyDB Summary

At present, the BerkeleyDB family is mainly composed of the following three parts:

BerkeleyDB- is developed by C language. This is the most classical kind.

BerkeleyDBJavaEdition (JE)-developed by Java.

BerkeleyDBXML- was developed by C++.

Data structure

BerkeleyDB- currently supports four data structures.

B-Tree

Hash

Queue: accessing fixed-length records

Recno: save variable length records

BerkeleyDBJavaEdition (JE)-developed by Java. Currently, only B-Tree format is supported.

BerkeleyDBXML- was developed by C++.

How to use BerkeleyDB as NoSQL

Transaction support

BerkeleyDB can support transactions flexibly. In BerkeleyDB, the data reliability supported by the transaction will have three levels, the strongest one is that the data is persisted directly to the disk when the transaction is committed, the second is that the data is left to the operating system to decide when to flush the disk when the transaction is committed, and finally, it is not persistent disk, but is guaranteed by the background checkpoint.

Horizontal expansion

BerkeleyDB provides an extension mechanism for Master-Slaver. Multiple Replica can be carried by one Master. It can bring you the following benefits:

Enhanced read performance

Improve reliability

Enhanced durability (Durability): transactions can be relaxed on the Master side, while data durability is guaranteed by clusters.

Enhanced availability

BerkeleyDB has been or will be applied to Amazon'sDynamo,ProjectVoldemort,MemcacheDB, as well as GenieDB.

Thank you for reading this article carefully. I hope the article "how to use Berkeley DB as NoSQL" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report