Phprocksdb extension: rocksdb

Source: Internet
Author: User
Phprocksdb extension: rocksdb extension for php rocksdb.

The embedded database RocksDB is an embedded Key-value storage system developed by Facebook based on LevelDB. this database can fully utilize the flash memory performance and greatly improve the speed of application servers.

Rocksdb. this open-source engine is based on Google's leveldb 1.5 version. However, it is said that many optimizations have been made to greatly improve the performance of leveldb and solve the leveldb's active write restriction problem.

Facebook uses RocksDB to drive some user-oriented applications. these applications have poor performance because they need to access external storage through the network, facebook also uses RocksDB to solve some problems related to low I/O utilization of SSD. Facebook's database engineer Dhruba Borthakur introduced the design principles and principles of RocksDB in his blog, but in fact the biggest driver of RocksDB is the sharp decline in the price of server flash memory cards, facebook's custom server has begun to fully adopt flash memory.

With the advent of the flash storage era, some new applications can manage and quickly access their own datasets in flash memory without accessing external data through the network. These new applications use embedded databases.

If the database query is performed in the local flash memory, the speed is theoretically twice faster than the query through the internal network of the data center, because the internal network of the Database Center has 50 subtle latencies.

RocksDB can make full use of the high IOPS performance of flash memory and the computing performance of multi-core servers, facebook has published the benchmark test results of RocksDB running on the Fusion-io server on the GitHub page of RocksDB, facebook claims that it is much faster than Google's LevelDB embedded key-value storage system.

RocksDB official website: http://www.rocksdb.org/

RocksDB Source: https://github.com/facebook/rocksdb/

Call method:

$dbPath = "/tmp/test";$rocksdb = new Rocksdb($dbPath);$rocksdb->set("key", "value");$rocksdb->get("key");$rocksdb->del("key");$rocksdb->close();

Project homepage:Http://www.open-open.com/lib/view/home/1449999664000

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.