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 2
Plugin Development
SQLiteDatabase Plugin for MP2
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="MJGraf" data-source="post: 989149" data-attributes="member: 17886"><p>Ok, the last test for me today was with only one change compared to v0.2. In the connection string I added</p><ul> <li data-xf-list-type="ul">SyncMode=SynchronizationModes.Normal</li> </ul><p>Details can be found here: <a href="http://www.sqlite.org/pragma.html#pragma_synchronous" target="_blank">http://www.sqlite.org/pragma.html#pragma_synchronous</a> . With this setting, a transaction may not survive a power loss (but of course the database itself does), which is ok imo.</p><p>We could have more speed improvements by using SynchronizationModes.Off, but then the database may become corrupted in case of a power loss and this is something that gets on my nervers with the MP1-TVServer database already, so I want to avoid that in MP2...</p><p> </p><p>Result is as follows:</p><p>Same import as above (24k music files)</p><p>Import took 30 min - now it's more than three times as fast as SQLCE...</p><p>This is noticably a further speed improvement, so I think we should use this further setting (I have no idea, whether MP2 could even cope with a non-committed transaction, which is still there after a power loss, so this tradeoff seems to be acceptable).</p><p>Attached is therefore a v0.3 - only change to v0.2 is the setting above. As a result, the v0.2 database file IS compatible with the v0.3 version. No changes to the database structure were introduced.</p><p> </p><p>What I also did is just copy part of my music collection and import that as well. This now brought me a database file size > 2GB and this also worked without a problem. <a href="http://www.sqlite.org/limits.html" target="_blank">http://www.sqlite.org/limits.html</a> reports that the maximum database file size is about 140TB - should be enough for most use cases <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p> </p><p>I'd be glad if we could get some more testing on this provider. Since it is much faster than SQLCE and has no database file size limitations, I'm tempted to propose this as new standard database provider. Furthermore it includes only one dll, which is much smaller than all the SQLCE-DLLs and I think there are also NUGet-packages available, which should make @<a href="https://forum.team-mediaportal.com/members/chefkoch.10438/" target="_blank">chefkoch</a> happy <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> But for this to happen we need MUUUUUCH more testing, since the database is really a core component of MP2 (and we also need to sort out Morph's comment regarding the native TV provider, but I don't think this is a real problem...)</p><p> </p><p>Michael</p><p> </p><p>[Attachment removed - please use version from first post]</p></blockquote><p></p>
[QUOTE="MJGraf, post: 989149, member: 17886"] Ok, the last test for me today was with only one change compared to v0.2. In the connection string I added [LIST] [*]SyncMode=SynchronizationModes.Normal [/LIST] Details can be found here: [url]http://www.sqlite.org/pragma.html#pragma_synchronous[/url] . With this setting, a transaction may not survive a power loss (but of course the database itself does), which is ok imo. We could have more speed improvements by using SynchronizationModes.Off, but then the database may become corrupted in case of a power loss and this is something that gets on my nervers with the MP1-TVServer database already, so I want to avoid that in MP2... Result is as follows: Same import as above (24k music files) Import took 30 min - now it's more than three times as fast as SQLCE... This is noticably a further speed improvement, so I think we should use this further setting (I have no idea, whether MP2 could even cope with a non-committed transaction, which is still there after a power loss, so this tradeoff seems to be acceptable). Attached is therefore a v0.3 - only change to v0.2 is the setting above. As a result, the v0.2 database file IS compatible with the v0.3 version. No changes to the database structure were introduced. What I also did is just copy part of my music collection and import that as well. This now brought me a database file size > 2GB and this also worked without a problem. [url]http://www.sqlite.org/limits.html[/url] reports that the maximum database file size is about 140TB - should be enough for most use cases ;) I'd be glad if we could get some more testing on this provider. Since it is much faster than SQLCE and has no database file size limitations, I'm tempted to propose this as new standard database provider. Furthermore it includes only one dll, which is much smaller than all the SQLCE-DLLs and I think there are also NUGet-packages available, which should make @[URL='https://forum.team-mediaportal.com/members/chefkoch.10438/']chefkoch[/URL] happy :p But for this to happen we need MUUUUUCH more testing, since the database is really a core component of MP2 (and we also need to sort out Morph's comment regarding the native TV provider, but I don't think this is a real problem...) Michael [Attachment removed - please use version from first post] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
SQLiteDatabase Plugin for MP2
Contact us
RSS
Top
Bottom