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