summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-02-25 11:49:27 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-02-25 11:49:27 +0100
commitaaee48294adbd81245d1c22bf0acbd5cd447ec89 (patch)
tree46aafc3319aeee01d5eefff1a55bacc6f6e885c4
parent659ffcb2afaedf8cf724894a6cea0ffb585ee220 (diff)
downloaddebian-dedup-aaee48294adbd81245d1c22bf0acbd5cd447ec89.tar.gz
README: another interesting query
-rw-r--r--README4
1 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index aff9868..5d539e4 100644
--- a/README
+++ b/README
@@ -21,6 +21,8 @@ Import a full mirror::
Viewing the results
-------------------
Run `./webapp.py` and enjoy a webinterface at `0.0.0.0:8800` or inspect the
-SQL database by hand. Example query:
+SQL database by hand. Example queries:
SELECT a.package, a.filename, b.package, b.filename, a.size FROM content AS a JOIN content AS b ON a.hash = b.hash WHERE (a.package != b.package OR a.filename != b.filename) ORDER BY a.size DESC LIMIT 100;
+
+ SELECT hash, sum(size)-min(size), count(*), count(distinct package) FROM content GROUP BY hash ORDER BY sum(size)-min(size) DESC LIMIT 100;