Database Maintenance

Get answers about using the current release of MediaMonkey for Windows.

Moderator: Gurus

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Database Maintenance

Post by dypsis » Sun Apr 12, 2015 3:22 am

My database is now 122 MB. To me, it seems big for a database.

Is there any maintenance that can or needs to be done on it to keep it small and healthy like (for example) Microsoft Access databases?

Or do I just carry on.... ? :wink:

popsmike
Posts: 174
Joined: Thu Oct 05, 2006 11:02 am
Location: Hull,UK

Re: Database Maintenance

Post by popsmike » Sun Apr 12, 2015 4:15 am

The easiest method i think most people use is...
File > Maintain Library > then make sure Optimize database (Complete) is ticked then OK it.

This should do a decent clean for you but the database size does get quite large depending on how albums etc you have.
Windows 10 Pro x64 2TB USB3 External Hdd with Quad Core 3600Mhz CPU and 10GB Ram
MM 4.1.21.1871 Portable on External Hdd
TESTING MM 5.0.0.2113
Numerous Addons
User Since 2006 (Lifetime License) since 2012

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

Re: Database Maintenance

Post by MMFrLife » Sun Apr 12, 2015 8:34 am

As suggested, do the optimization on it periodically for the "health" part.
As far as the "size", no need to worry. MM can handle it :)
[122 MB is fairly small compared to many MM users]
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Re: Database Maintenance

Post by dypsis » Tue Apr 14, 2015 2:05 am

Thanks guys.

I'll check that out.

dtsig
Posts: 2979
Joined: Mon Jan 24, 2011 6:34 pm

Re: Database Maintenance

Post by dtsig » Tue Apr 14, 2015 8:51 am

dypsis wrote:My database is now 122 MB. To me, it seems big for a database.

Is there any maintenance that can or needs to be done on it to keep it small and healthy like (for example) Microsoft Access databases?

Or do I just carry on.... ? :wink:
Microsoft Access <G> .. My db is approx 850m right now and that is middle of the road with this gang. There has been no problem from the db. Just do the maintenance as mentioned and do backups ..
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig

imagehopper

Re: Database Maintenance

Post by imagehopper » Tue Apr 14, 2015 2:23 pm

With all the information mm puts in the tags you must have 2000 songs :lol:

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Re: Database Maintenance

Post by dypsis » Fri Apr 17, 2015 12:28 am

Thanks guys.

I optimized the database. It didn't make any difference to the size though.

wyng

Re: Database Maintenance

Post by wyng » Fri Apr 17, 2015 1:16 am

I optimized the database. It didn't make any difference to the size though.
No surprise really. If you perform a pragma integrity check on an MM database after complete optimisation you'll probably find a load of missing references (that shouldn't be there). MM is the only SQLite database that I have which fails the test.

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Re: Database Maintenance

Post by dypsis » Fri Apr 17, 2015 4:19 am

Yes, you're right.

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

Re: Database Maintenance

Post by MMFrLife » Fri Apr 17, 2015 8:25 am

dypsis wrote:I optimized the database. It didn't make any difference to the size though.
It's not supposed to (that is significant enough to matter).
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

wyng

Re: Database Maintenance

Post by wyng » Sat Apr 18, 2015 7:04 am

MMFrLife said: It's not supposed to (that is significant enough to matter).
From here:http://sqlite.org/lang_vacuum.html

"Unless SQLite is running in "auto_vacuum=FULL" mode, when a large amount of data is deleted from the database file it leaves behind empty space, or "free" database pages. This means the database file might be larger than strictly necessary. Running VACUUM to rebuild the database reclaims this space and reduces the size of the database file."

So are you saying that MediaMonkey's complete optimisation does not compact the database?

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

Re: Database Maintenance

Post by MMFrLife » Sat Apr 18, 2015 10:38 am

The general idea of Optimization is to fix little inconsistencies that bog the database down from running smoothly.
Sure, it might compact it/reduce size some after also deleting empty space characters. But I don't think we're talking
differences of, say, from 122mb to 112mb or even 122mb to 117mb for most people (you might get those numbers
if you optimize (complete) after a few years of "frequently" deleting stuff from the database without any maintenance).

Have you or anyone else ever noticed a "significant enough" difference in size to matter much (size wise,
not overall database health) after doing an optimization and pre-optimization comparison test?
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Re: Database Maintenance

Post by dypsis » Sat Apr 18, 2015 11:12 pm

I am not concerned about the size of the database.
I just thought that I may have noticed a difference.

But, I am concerned of ensuring that it stays healthy. :)

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

Re: Database Maintenance

Post by dypsis » Sun Apr 19, 2015 4:44 am

And play dates are getting messed up.

Peke
Posts: 12093
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Database Maintenance

Post by Peke » Mon Apr 20, 2015 8:50 pm

dypsis wrote:And play dates are getting messed up.
Can you clarify that?
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

Post Reply