Rockset is a cloud-based search and analytics database-as-a-service offering.
- Source Code
- https://github.com/rockset[02]
- Tech Docs
- https://docs.rockset.com[03]
- Developer
- Country of Origin
- US
- Start Year
- 2016 [05]
- Project Type
- Commercial
- Written in
- C++
- Supported Languages
- Go, Java, JavaScript, Python
- Operating System
- Hosted
- License
- Proprietary
Rockset is a cloud-based search and analytics database-as-a-service offering.
Compression[04]
zSTD compression with dictionary encoding per file and 10-bit bloom filter to quickly find keys for their proprietary converged index.
Data Model[04]
Has dynamic, smart schemas that supports semi-structured data like JSON, csv, tsv, etc… This makes it great as a database for the back end for a web application as it does not need to take in very structured data. This is handled by special indexing of these files such that they can be used for SQL based queries (relational queries). -The schema is not inferred from a sample of the data. Instead, the entire data set is indexed so that when new data arrives it can instantly be used to update the dynamic schema if it contains new rows or information. This means that no rows are ever rejected and all of them are instantly query-able by Rocket. -Most primitive data structure is the Document in Rocket. Documents contains a set of fields and has a unique document ID and are mutable. -A collection is a container of documents and is analogous to a table in a formal relational database. -Updates to a document even with multiple fields are atomic, but writes to multiple documents are not atomic (recall that 4k is max amount that hardware can guarantee atomicity). -Writes are asynchronous (asynchronous propagation), but user placed blocks or barriers (cannot pass until all processes have reached the barrier) can be used to implement a form of synchronization if certain writes need to happen.
Indexes[04]
-Have a proprietary combination of three different indexes: -Inverted Index -Columnar Index -Document Index -Optimized for the following 6 query types: -Key-value -Time-series -Document -Search -Aggregation -Graph -Because Rockset contains a smart, dynamic schema, it will not know what the shape of the data is ahead of time. For this reason, Rockset uses the above described three index system to optimize for queries with an unknown shape or schema. This is especially relevant for point queries and aggregation queries. -The index is a live, real-time index that is updated from numerous data sources. -The index is a covering index, which means that there is an index on all columns to ensure that the query never needs to revert back to the actual table for computation. This is very important for performance especially in the case where the shape of the data is unknown ahead of time. -Updates to the indexes are served through the cloud. -There are many storage and I/O optimizations present in the index, mainly the separation of the logical and physical indexes. These are linked through a key-value store, which is different from the implementation of any other database. -Additionally, there Rockset uses a 10-bit bloom filter to make it easier to find keys. This reduces the I/O load by 99%. -The indexes point to documents, which are mutable. This means that a document can be edited without being reindexed after each write since the index can be edited directly.
Parallel Execution[04]
-Uses a bottom-up approach to process queries. -Uses the iterator or volcano model to process data, but can switch to vectorized if the query needs to scale. -Uses a combination of both rule based and cost based optimization.
Storage Architecture[04]
In memory storage in a distributed cloud based system where each node contains a small amount of data (data parallel) in the memory of the machine.
Storage Model[04]
-Uses a hybrid storage model as it uses a dynamic schema system. -Has an index on columns (columnar) to support this dynamic system.
Citations
5 sources- https://openai.com/index/openai-acquires-rockset/ openai.com
- ROCKSET · GitHub github.com
- https://docs.rockset.com rockset.com
- https://openai.com/index/openai-acquires-rockset openai.com
- Rockset launches out of stealth with $21.5 M investment | TechCrunch techcrunch.com