IMDb: Use SQLite indices instead of (half) MD5 hashes for lookup
authorPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 10 Nov 2009 16:57:29 +0000 (17:57 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 11 Nov 2009 18:08:27 +0000 (19:08 +0100)
commitcc4e8710d7d92624f6216e5ff7394262d7694458
tree06389a7417421a4fd3461d4f4f7de424c8aa58a9
parent9f5538bbf2fddb68813b9120d0b647b2d09312c3
IMDb: Use SQLite indices instead of (half) MD5 hashes for lookup

The storage need increases to about 54MB for the full database, but
this should reduce CPU usage during download a bit and more importantly
it makes lookups faster. It also allows to pre-sort by number of votes.
src/imdb/imdb-plaintext-downloader.vala
src/imdb/imdb-sqlite.vala