DeepDB (also sometimes called DeepSQL near the end of the project) was a proprietary MySQL storage engine designed for OLAP and OLTP workloads. It was designed to be an alternative to the InnoDB storage engine for MySQL. Intended to scale MySQL to large scale data operations, it utilizes adaptive data structures and machine learning algorithms to optimize transactional workloads at a big data scale. Different from classic B+Tree and LSM-Tree based storage engines, DeepDB is built on top of a new tree structure, called CASSI (Continuous Adaptive Sequential Summarization of Info), which dynamically configures the database during runtime to adapt to new hardware deployments. CASSI keeps running the three steps of analysis, adaption, and optimization for high efficiency. Therefore, this storage engine allows enterprises to utilize MySQL without manual configuration under new hardware settings.
Deep Information Sciences was founded in 2010 based on research conducted at the University of New Hampshire. After the company went under in 2017, the source code of the DeepDB engine was released as open-source as part of a new Deep Software Foundation holding. A large portion of the source code of the system was a custom C++ implementation of the Java Development Kit software and not related to the DBMS itself.
Delta Encoding Prefix Compression
There exists prefix compression in indexes. DeepDB keeps compressed data in the cache, and decompress it during operations. The system supports high-levels of compression with a compact representation of keys and delta compression.
Multi-version Concurrency Control (MVCC)
DeepDB utilizes Multi-version Concurrency Control such that the database can be rolled back to any transactional state.
DeepDB runs on POSIX-based disk-oriented file-systems (e.g. SSD/HDD). All files are persistently stored on the disk and it will write data into in-memory files temporarily. DeepDB stores data in 3 forms including on-disk row store tables, in-memory row store tables, and on-disk column store indexes. Instead of organizing in pages, the in-memory row store is designed to manage single rows as much as possible. The data and indexes on disk in memory are organized into segments, with various sizes. Segments may contain summary data or metadata so that metadata or summary data remain in the cache when the segments are evicted.
The system manages cache usage using adaptive algorithms. Variable-sized segments rather than pages are used to store data. In addition, summary indexing is used to identify relevant segments.
Decomposition Storage Model (Columnar) N-ary Storage Model (Row/Record)
DeepDB supports transactional row storage for OLTP workloads. It also implements segmented column stores to deliver capabilities similar to OLAP databases (column store). Different from traditional column stores that maintain large and monolithic column store files, variable-sized segments are maintained in DeepDB to improve space utilization.
DeepDB storage engine is designed as an easy-to-install plugin replacement for MySQL's native InnoDB storage engine. Using DeepDB does not require any application or schema change. It augments MySQL with full ACID compliance and additional machine-learning metrics. The system is architected for complex environments and supports HTAP(Hybrid Transactional Processing).
https://github.com/DeepFound/deep_engine
Deep Information Sciences, Inc.
2010
2017
DeepSQL