DBDB.io The Encyclopedia of Database Systems · Est. 2017
Database of Databases

Database Entry

Vertica


Vertica is a distributed, shared-nothing column-store DBMS.

Database Entry

Vertica


Vertica is a distributed, shared-nothing column-store DBMS.

History


Vetica was founded by Michael Stonebraker and Andy Palmer in 2005. It was based on the C-Store prototype developed by MIT, Brown, and Brandeis.

It was acquired by Hewlett Packard in 2011. HP then sold it to MicroFocus in 2017.

Checkpoints[04][05]


In Vertica, each node maintains checkpoints and transaction logs separately. The synchronization duration can be tuned by users as well. For a single-node failure, it can be recovered from other nodes. If the entire cluster fails, it can be recovered up to the earliest checkpoints when all nodes are good. New transaction log cannot be appended when a new checkpoint begins.

Compression[06]


Both Run-Length Encoding and Delta encoding are used in Vertica. RLE encoding is only used when the number of repetitions is large. Delta encoding works for INTEGER/DATE/TIME/TIMESTAMP/INTERVAL type, where the variations from the smallest value are stored instead of the real values to save more space.

Concurrency Control[07]


Vertica supports MVCC to achieve data consistency. Both current and previous statuses are stored and visible to transactions.

Data Model[08]


Columnar store is used in Vertica to improve the performance of sequential access by sacrificing the performance of single access. Compared with row-oriented databases which has to scan the whole table, only few needed columns are retrieved based on given queries in Vertica, which can improve throughput by reducing disk I/O costs.

Foreign Keys[09]


Vertica allows users to use foreign key constraints. Foreign keys should be defined when tables are created or "ALTER TABLE" is used.

Indexes[10]


Indexes are not support in Vertica. Projections are used to improve query performance in Vertica.

Isolation Levels[11]


Read Committed and Serializable are supported in Vertica. Read Committed is the default isolation level. Read Uncommitted and Repeatable Read are treated automatically as Read Committed and Serializable respectively in vertica.

Joins[12]


Both merge join and hash join are supported in Vertica. Merge join is faster in general and requires less memory, but data is required to be sorted before. Hash join requires more memory, but it is faster if the inner table can fit in the memory.

Logging


Query Compilation


Query Interface[02]


Vertica supports query via SQL and its custom API. Vertica also provides connectors for external services, such as Hadoop, Spark, Kafka. Moreover, Vertica also supports C++, Java, Python, R SDK.

Storage Architecture[13][14]


Storage Model[13]


Data is stored in Vertica in columnar format to improve query performance, since a lot of disk I/O can be avoided.

Storage Organization[15]


Different from other DBMS, containers are used in Vertica to store data,WOS (Write Optimized Storage) and ROS (Read Optimized Storage) are two existing types. Tuple Mover is used to transfer data between WOS and ROS.

Stored Procedures[16]


Stored Procedures are not support in Vertica. External Procedures such as R,C++ can be used in Vertica.

System Architecture[08][17]


Shared-nothing architecture is used in Vertica, where all nodes don't share anything in terms of memory and disk storage. Shared-nothing architecture are easier to scale, since there is no race or contention caused by locks. Moreover, Massively MPP(Massive Parallel Processing) architecture is used in Vertica, which can improve query performance such as increasing the throughput of large joins when multiple machines are involved.

Views[05]


The projections in Vertica are similar to materialized view in other DBMS. Various projections can be created on the same table so that some optimizations such as sorting data can be done for some specific queries in advance.

Citations

17 sources
  1. http://www.vertica.com vertica.com Spam — Check Archive
  2. Vertica® Documentation vertica.com
  3. Vertica - Wikipedia wikipedia.org
  4. Troubleshooting Tips for the Vertica Catalog vertica.com Dead — Check Archive
  5. https://blogs.opentext.com opentext.com Dead — Check Archive
  6. Encoding Types vertica.com
  7. https://www.vertica.com/blog/concurrency-workload-management vertica.com
  8. Advanced Analytics for Data Warehouse & Data Lakehouse vertica.com Dead — Check Archive
  9. Foreign Key Constraints vertica.com
  10. Can I create an index on a table in Vertica? - Stack Overflow stackoverflow.com Dead — Check Archive
  11. Transactions vertica.com
  12. Hash Joins Versus Merge Joins vertica.com
  13. Vertica Cluster Architecture vertica.com
  14. Understanding ROS and WOS: A Hybrid Data Storage Model - OpenText Blogs opentext.com
  15. http://www.aodba.com/understanding-vertica-storage-mechanism/ aodba.com Dead — Check Archive
  16. sql - How to create external procedures in Vertica - Stack Overflow stackoverflow.com Dead — Check Archive
  17. http://www.aodba.com/vertica-architecture-type/ aodba.com Dead — Check Archive
Revision #17