IMDb SQLite database: reuse prepared statements for common operations
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 13 Aug 2010 15:46:21 +0000 (17:46 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 13 Aug 2010 20:22:45 +0000 (22:22 +0200)
commitbcf3f2e60c2eb20ddf2de08f508192cc7de363e5
treeae23ebf2ecdc3f0eddc7662883d9a685765f8393
parent5a1afa417a8886c7d693608a428251077c33535e
IMDb SQLite database: reuse prepared statements for common operations

The add_movie, movie_set_rating, movie_add_genre, add_aka, add_plot and
movie_exists methods are called a lot during IMDb parsing. Optimize by
keeping the statement objects around.
src/imdb/imdb-sqlite.vala