Ok so if I understand correctly:
- Writes will be put in the queue and sent to Sqlite asap, and current cache will be updated/invalidated to reflect those changes?
I can imagine scenarios where the front-end needs something that the write returned (be it an id or something like that) didn't you encounter such cases?
As for using mpsync: don't know why but it seems to be doing an ok job despite mediaportal locking the database for the whole session...
Times watched; fine by me.
Remove dead records: so that only works if you browse inside the directory in mediaportal? So that will keep deleted directories in the database? Not a big problem in my view but might still be a valid usecase for things like mpcleaner then...
My concern was more that if pc1 has some local files (be it on local c-disk or removable media) those are added in the database and if after that, pc2 starts mediaportal and doesn't have those files present on pc2 it might go deleting those database records.
P.S. I might be overthinking all the possible pitfalls of these changes, but that's just how I am
- Writes will be put in the queue and sent to Sqlite asap, and current cache will be updated/invalidated to reflect those changes?
I can imagine scenarios where the front-end needs something that the write returned (be it an id or something like that) didn't you encounter such cases?
- Reads will be fetched from cache if present, and if not will be read from sqlite (as blocking call), and cache will be updated?
- You will create a new sqlite connection for each and every query? Can't that be a performance-killer?
As for using mpsync: don't know why but it seems to be doing an ok job despite mediaportal locking the database for the whole session...
Times watched; fine by me.
Remove dead records: so that only works if you browse inside the directory in mediaportal? So that will keep deleted directories in the database? Not a big problem in my view but might still be a valid usecase for things like mpcleaner then...
My concern was more that if pc1 has some local files (be it on local c-disk or removable media) those are added in the database and if after that, pc2 starts mediaportal and doesn't have those files present on pc2 it might go deleting those database records.
P.S. I might be overthinking all the possible pitfalls of these changes, but that's just how I am