I\'m trying to create a simple favorites application, where you can keep your favorites pages (from the web for example).
Let\'s say I have the following data in my
There is a very graceful (imho) way to do this at the database level. Add this to your create table sql when you create your database:
UNIQUE(TITLE, URL) ON CONFLICT REPLACE
Then you can insert all you want without checking, it will either be added or updated if the row is already there.