5 most popular databases for mobile development
Embedded databases are lightweight, stand-alone libraries, no server components, no management, a small code size, and limited resource requirements. There are several embedded databases that you can use in your mobile application. Let's take a look at these most popular databases.
Database
Data type Storage
License Support Platform
Berkeleydbrelational, objects, Key-value pairs, DOCUMENTSAGPL 3.0Android, IOS
Couchbase Litedocumentsapache 2.0Android, IOS
Leveldbkey-value pairsnew bsdandroid, IOS
Sqliterelationalpublic domainandroid, IOS, Windows Phone, Blackberry
Unqlitekey-value pairs, Documentsbsd 2-clauseandroid, IOS, Windows Phone
1. Berkeley DB
Berkeley DB is a set of open source embedded database management systems (acquired by Oracle) developed by the United States Sleepycat software, which provides scalable, high-performance, transaction-protected data management services for applications.
Berkeley DB (BDB) is an efficient embedded database programming library that has APIs for C, C + +, Java, Perl, Python, TCL, and many other languages. Berkeley DB can hold any type of key/value pair (Key/value pair), and you can save multiple data for one key. Berkeley DB enables thousands of of concurrent threads to operate the database at the same time, supporting up to 256TB of data, widely used in various operating systems, including most Unix-like operating systems, Windows operating systems, and real-time operating systems.
2. Couchbase Lite
Couchbase Lite is an ultra-lightweight, reliable, and secure JSON database developed for online and offline mobile applications. Even under the most uncertain network conditions, you can provide a productive and reliable reputation for your mobile applications. In addition, the ' Sync Portal ' feature can also provide collaboration, social interaction, or user updates.
3. LevelDB
LevelDB is a Google open source Key/value storage engine, which is written in C + + and supports high concurrent access and writing, especially for high write business environments.
For an overview of LevelDB can refer to the data analysis and processing of the second (LevelDB implementation principle) to LevelDB a description, the plot of this article is more LevelDB a realization layer of entanglement, version LevelDB 1.7.02.
LevelDB storage is mainly divided into sstable and memtable, which are immutable and stored on persistent devices, which are in memory and variable (there are two memtable in LevelDB, one for the current write memtable, and the other for persistent immutable memtable). First, we look at the implementation layer analysis of sstable.
4. SQLite
SQLite is an open-source, embedded relational database that implements a self-contained, 0 configuration, transactional SQL database engine. It is characterized by its high portability, ease of use, compact structure, high efficiency and reliability. Unlike other database management systems, SQLite is very simple to install and run, in most cases-just make sure that sqlite binaries exist to start creating, connecting, and using the database. If you are looking for an embedded database project or solution, SQLite is definitely worth considering.
5. Unqlite
Unqlite is an embedded C-language software library produced by Symisc Systems, which implements a self-contained, server-free, 0-config, transactional NoSQL database engine. Unqlite is a document store database, similar to MongoDB, Redis, CouchDB, and so on. At the same time, it is also a standard key/value storage, similar to BerkeleyDB and LevelDB.
Unqlite is an embedded NoSQL (key/value store and document store) database engine. Unlike most other NoSQL databases, Unqlite does not have a separate server process. Unqlite directly read/write plain disk files. A complete database containing multiple datasets, stored in a single disk file. The database file format is cross-platform and allows you to freely copy a database between 32-bit and 64-bit systems or big-and small-end architectures.
5 most popular databases for mobile development