Kodi Community Forum
New built-in commands - "LockVideoDatabase" and "UnlockVideoDatabase"? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: New built-in commands - "LockVideoDatabase" and "UnlockVideoDatabase"? (/showthread.php?tid=30374)



New built-in commands - "LockVideoDatabase" and "UnlockVideoDatabase"? - Gamester17 - 2007-12-31

http://forum.xbmc.org/showthread.php?tid=27990&page=5

Video and music, etc. databases should be able to be locked/unlocked seperatly

Good idea? Huh


- jmarshall - 2007-12-31

ATM you won't be able to overwrite any of the db's while you are browsing them (even if you are just sitting in My Music for instance).

Whether this is sensible or not I'm not sure - but certainly some sort of "global lock" is not IMO the way to go as it means a single thread can access the db at a time, whereas sqLite (to my knowledge) handles multi threading just fine.

You should be able to update the tables etc. instead of simply overwriting the files as it is.

Cheers,
Jonathan


- Gamester17 - 2008-01-01

Cool, ...could you please explain that to phunkyfish so that he does it that way instead?