summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-02 22:29:04 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-02 22:29:04 +0100
commite296fa30b78d8d52aba74c4a069bc7e061e96dd2 (patch)
treec094c1b74601e2d2cb742f8a4ce6e045d60c3f93 /schema.sql
parentc84e9e795a2a31a3e011e13a393b1278b0feb658 (diff)
downloaddebian-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.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
index 3f3a08e..b5397ee 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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);