home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
MP crashes reading read-only Myfilms.xml
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Guzzi" data-source="post: 957416" data-attributes="member: 55213"><p>Not fully related, but just in case anybody else thinks about this:</p><p>I was doing similar but with similar approach in the past:</p><p>Using sync tool, I did a one way synchronization from the server share to a local folder like e.g. c:\data, including the catalog file and the cover art.</p><p>MyFilms config then used the local copy - whatever was changed, never touched the server file.</p><p>Big advantage:</p><p>The local copy was on local SSD drive, thus it was stunning fast for both opening/reading the catalog and the artwork (which takes some time, when you do that via network / NAS).</p><p> </p><p></p><p>Yes, fully correct - reason see below.</p><p></p><p> </p><p>It is all about finding a good compromise between safety, when accessing and/or changing data and locking. We don't want to lock too much, as otherwise GUI might have to wait too long in certain situations to finish certain methods - but we must makle sure, data is consistant.</p><p>So normal "read" access should NOT be exclusive and should NOT prevent other instances to perform actions (think about e.g. trakt updating in the background).</p><p>All this is even more complicated, if you access the DB file from multiple PCs - as you're not only in different threads, but not even in different tasks anymore. We had problems in the past, that the normal stream parameters did not work well for this - and if you leave windows (using NAS with SAMBA etc.), we can't be sure anymore, that the on board stuff works - that's why we use a locking file that is independant of the filesystem access API features (network access is different than local filesystem access).</p><p>However, quite possible, that this could be done in a better way - much of the code evolved over long time and might have leftovers etc. - if anybody experienced in that area can give good advices and suggestions, that could be improved.</p><p>Regardless of that: As long as you assume, there is no need for handling concurrent access, there is no need for write access, as long as you do not want to update the XML DB itself - which was the initial question.</p></blockquote><p></p>
[QUOTE="Guzzi, post: 957416, member: 55213"] Not fully related, but just in case anybody else thinks about this: I was doing similar but with similar approach in the past: Using sync tool, I did a one way synchronization from the server share to a local folder like e.g. c:\data, including the catalog file and the cover art. MyFilms config then used the local copy - whatever was changed, never touched the server file. Big advantage: The local copy was on local SSD drive, thus it was stunning fast for both opening/reading the catalog and the artwork (which takes some time, when you do that via network / NAS). Yes, fully correct - reason see below. It is all about finding a good compromise between safety, when accessing and/or changing data and locking. We don't want to lock too much, as otherwise GUI might have to wait too long in certain situations to finish certain methods - but we must makle sure, data is consistant. So normal "read" access should NOT be exclusive and should NOT prevent other instances to perform actions (think about e.g. trakt updating in the background). All this is even more complicated, if you access the DB file from multiple PCs - as you're not only in different threads, but not even in different tasks anymore. We had problems in the past, that the normal stream parameters did not work well for this - and if you leave windows (using NAS with SAMBA etc.), we can't be sure anymore, that the on board stuff works - that's why we use a locking file that is independant of the filesystem access API features (network access is different than local filesystem access). However, quite possible, that this could be done in a better way - much of the code evolved over long time and might have leftovers etc. - if anybody experienced in that area can give good advices and suggestions, that could be improved. Regardless of that: As long as you assume, there is no need for handling concurrent access, there is no need for write access, as long as you do not want to update the XML DB itself - which was the initial question. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
MP crashes reading read-only Myfilms.xml
Contact us
RSS
Top
Bottom