1 -- We maintain a local index of data blocks that have been previously stored
2 -- for constructing incremental snapshots.
4 -- The index is stored in an SQLite3 database. This is its schema.
6 -- Index of all blocks which have been stored in a snapshot, by checksum.
7 create table block_index (
8 blockid integer primary key,
15 create index block_content_index on block_index(checksum);
16 create index block_name_index on block_index(segment, object);
18 -- Index tracking which blocks are used by which snapshots.
19 create table snapshot_contents (