<div dir="ltr">If somebody is interrested, there are 3 Sqlite SQL statement to convert to MySql in digiKam DB XML config file.<div><br></div><div>From there :</div><div><br></div><div><a href="https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1427">https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1427</a><br></div><div><br></div><div>to :</div><div><br></div><div><a href="https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1491">https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/data/database/dbconfig.xml.cmake.in#L1491</a><br></div><div><br></div><div>This about Face database table, indexes, and triggers to create in relevant database.</div><div><br></div><div>This code is the same for SQlite, but it don't yet ported. I must be easy to do it as we have a similar sall dataabse definition for thumbnails storage.</div><div><br></div><div>The XML config file is divided in too part : on for Sqlite on the first, one others for Mysql. Comparing both section is easy since i commented all parts to be maintainable easily.</div><div><br></div><div>Gilles Caulier</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 18:21 GMT+01:00 Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-11-12 18:12 GMT+01:00 Richard Mortimer <span dir="ltr"><<a href="mailto:richm+digikam@oldelvet.org.uk" target="_blank">richm+digikam@oldelvet.org.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On 12/11/2015 16:38, Henrique Santos Fernandes wrote:<br>
><br>
> The one advantage of having separate databases is for backup purposes.<br>
> The thumbnail database in particular can be massive and having it<br>
> separate makes it easier especially since it is basically throwaway data<br>
> anyway.<br>
><br>
><br>
> This is true. But still easy to remove or drop the tables related to it.<br>
> Only "problem" would be the backup size, as it would include the<br>
> thumbnails..<br>
</span>Yes. That's my point. Dropping the tables isn't practical on a nightly<br>
basis. I currently have separated databases and the "main" database<br>
backup is 1.5 MB compressed but the thumbnails database is 650 MB<br>
compressed.<br>
<span><br>
><br>
><br>
> The performance of MySQL doesn't really come into it. You can in theory<br>
> partition different databases into different locations/disks etc. and<br>
> that might be of interest to some but it would be a pretty special<br>
> use case.<br>
><br>
> I think that the correct default would be to use a common name for all<br>
> three but allow separate names if required.<br>
><br>
><br>
> I think teh default should be one database also.<br>
><br>
> I guess, having the possibility to separate the databases would<br>
> introduce much more work right? I am not sure.. not a developer.. i<br>
> only know some about infrastructure .<br>
</span>You can already separate them and I would like to see that capability<br>
remain if possible.<br></blockquote><div><br></div></div></div><div>yes, this will stay like this in code. I will improved the configuration dialog with an advanced settings view when users want to use separated databases.</div><div><br></div><div>This will be more clear for non technical users.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Gilles Caulier</div></font></span></div></div></div>
</blockquote></div><br></div>