View Full Version : Drop connection on idle
Nobodo
09-08-2010, 11:19 AM
Would it be possible for UR to drop its database connection after a period of inactivity? Currently to use Dropbox or something similar to sync a database between computers I have to close it first or the sync software keeps complaining the file is in use. That's easy enough when I remember to do it, but sure gives a whammy of a gotcha if I forget.
Thanks for the great product!
Mark.
kinook
09-08-2010, 11:31 AM
Like other programs with a database backend (i.e., Quicken, Outlook, Word, etc.), it's not feasible to open the database only when accessing it. And SQLite (the database engine used by UR) only locks the database file when writing to it (see here for minimizing database updates: http://www.kinook.com/Forum/showthread.php?threadid=3728). Most backup software is able to backup in-use files, but if Dropbox can't, one option might be to backup the file using a program that can (see http://www.howtogeek.com/howto/windows-vista/backupcopy-files-that-are-in-use-or-locked-in-windows/), and have Dropbox sync the backup copy.
Nobodo
09-08-2010, 03:25 PM
Thank you for the suggestions; I'll have to check out the hobocopy. I don't know how expensive closing/reopening connections are in sqllite and didn't realize it was the norm to open/close just once.
thanks,
Mark.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.