diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-02-25 11:49:27 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-02-25 11:49:27 +0100 |
commit | aaee48294adbd81245d1c22bf0acbd5cd447ec89 (patch) | |
tree | 46aafc3319aeee01d5eefff1a55bacc6f6e885c4 /README | |
parent | 659ffcb2afaedf8cf724894a6cea0ffb585ee220 (diff) | |
download | debian-dedup-aaee48294adbd81245d1c22bf0acbd5cd447ec89.tar.gz |
README: another interesting query
Diffstat (limited to 'README')
-rw-r--r-- | README | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |