diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-03-02 22:29:04 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-03-02 22:29:04 +0100 |
commit | e296fa30b78d8d52aba74c4a069bc7e061e96dd2 (patch) | |
tree | c094c1b74601e2d2cb742f8a4ce6e045d60c3f93 /schema.sql | |
parent | c84e9e795a2a31a3e011e13a393b1278b0feb658 (diff) | |
download | debian-dedup-e296fa30b78d8d52aba74c4a069bc7e061e96dd2.tar.gz |
add sharing table
The sharing table is a cache for the /binary web pages. It essentially
contains the numbers presented. This caching table is not automatically
populated. It needs to be reconstructed after every (group of) package
imports.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3,3 +3,7 @@ CREATE TABLE content (package TEXT, filename TEXT, size INTEGER, function TEXT, CREATE TABLE dependency (package TEXT, required TEXT, FOREIGN KEY (package) REFERENCES package(package), FOREIGN KEY (required) REFERENCES package(package)); CREATE INDEX content_package_index ON content (package); CREATE INDEX content_hash_index ON content (hash); + +CREATE TABLE sharing (package1 TEXT, package2 TEXT, func1 TEXT, func2 TEXT, files INTEGER, size INTEGER); +CREATE INDEX sharing_insert_index ON sharing (package1, package2, func1, func2); +CREATE INDEX sharing_package_index ON sharing (package1); |