05-11-2010 12:56 PM
Is it better to
1. open the database, do your operations, close the database
2. open the database when the app starts, leave it open, do your stuff as long as your app is open, close the database on app shutdown?
I am using approach #2, but I seem to be having inconsistent results (ie inconsistently getting DatabaseIOExceptions) when trying to access the database, so I am considering switch over to explicitly open/close when I need it.
Thanks in advance.