diff options
-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; |