--
-- The index is stored in an SQLite3 database. This is its schema.
--- Index of all blocks which have been stored in one snapshot, by checksum.
+-- Index of all blocks which have been stored in a snapshot, by checksum.
create table block_index (
blockid integer primary key,
segment text,
size integer
);
create index block_content_index on block_index(checksum);
+create index block_name_index on block_index(segment, object);
+
+-- Index tracking which blocks are used by which snapshots.
+create table snapshot_contents (
+ blockid integer,
+ snapshot text
+);