Registered Member
|
Hi,
I recently switched from .kmm file to MySQL backend. I followed instructions in official KMM documentation and created database without any problem. Data seems to be OK, KMM is working OK (making changes, adding transactions, editing payees, ...) except saving changes to SQL. I expected that SQL storage will be a little bit slower than file, but there seems to be something wrong... Saving takes about 9 minutes during which KMM freezes and is unusable. (opening database takes about 2 minutes, quite long in comparison with few seconds, but still acceptable) The amount of data in db is: ~30ooo rowns in kmmSplits and ~13ooo in kmmTransactions. Only two messages appears in console after saving finishes:
What can I check/try to speed up saving process? Client:
|
KDE Developer
|
You may be better off by using the file backend. The existing database implementation is not performant enough to deal with your volume.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
So this behavior is expected? There is nothing to do about it?
I need to read KMM data by 3rd party software to be able to generate QIF files with correct (existing) Payee and Account names. That was the reason to switch to SQL storage. Local XML file is not very useful in this case |
KDE Developer
|
I woudn't call it expected, but it is the current situation
Does KMyMoney's QIF exporter does not produce usable results? It might be easier to tweak that than the SQL database stuff.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
No, I'm in opposite situation. I need to import transactions from another system into KMyMoney using existing Account and Payee names already present in KMM. So I've build mapping table between payee names in 3rd party system and kmmPayees.id. Moreover I add correct kmmAccount.accountName to each transaction (this info is missing in 3rd party system). Resulting QIF file is manually imported into KMyMoney and everithing is as expected. Long saving time is annoying during regular work with KMM - automatically pressed Ctrl+S after new transaction leads to another coffee break... (yes, I can remove this shortcut... I just guessed something miss-configured in my KMM or DB setup) |
Registered Member
|
May I jump on this post? How did you manage to use the Mysql driver in conjunction with KMM? The documentation is not very detailed about this. Thanks
Wanna go fishing - come to Ontario, Canada
using Linux Mint v 20.3 (Una) with Cinnamon/Mate. |
Registered Member
|
Sure, I just followed steps in documentation:
|
Registered Member
|
Perhaps ipwizard would give an opinion of using MySQL versus SQLite in KMM? |
KDE Developer
|
By file backend I am referring to XML based (plain text, gzip-compressed or GPG-encrypted) files. Not the SQLite database (which is also just a file on your disk). The database backend is currently in a somewhat 'unmaintained' state and that is true for any real DB backend (be it SQLite, PostgreSQL, MariaDB or MySQL). Hence I prefer the file backend.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]