Last updated
Was this helpful?
Last updated
Was this helpful?
Tables are the core unit of database . Tables are defined by a set of columns. Columns can be which act as a unique identifier for each row. Once a table schema is defined, rows containing data can be inserted into the table.
Table data is stored on disk. The way a database lays out it's table data on disk defines some of the performance characteristics of the database.
Structure the data in your database into tables. Define relationships between tables using foreign key . Use CREATE
statements to create tables and ALTER
statements to change their schema.
A MySQL and Dolt table function the same on the surface. CREATE
and ALTER
statements work the same on both.
Dolt and MySQL are , meaning row values are stored next to each other. However, MySQL stores data in a binary tree structure while Dolt stores table data on disk using a content-addressed binary tree called a . This setup makes Dolt while also providing history-independence and fast diff
between versions. Fast diff
powers Dolt's version control capabilities.
Dolt versions table schema and data. A table in Dolt is akin to a file in Git, it is the unit of change. Tables are the target of dolt add
.