Database Maintenance

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

dypsis
Posts: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Database Maintenance

Post by dypsis »

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 »

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: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

Re: Database Maintenance

Post by MMFrLife »

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 lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
๐Ÿ˜œ
dypsis
Posts: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Database Maintenance

Post by dypsis »

Thanks guys.

I'll check that out.
dtsig
Posts: 3588
Joined: Mon Jan 24, 2011 6:34 pm

Re: Database Maintenance

Post by dtsig »

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 »

With all the information mm puts in the tags you must have 2000 songs :lol:
dypsis
Posts: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Database Maintenance

Post by dypsis »

Thanks guys.

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

Re: Database Maintenance

Post by wyng »

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: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Database Maintenance

Post by dypsis »

Yes, you're right.
MMFrLife
Posts: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

Re: Database Maintenance

Post by MMFrLife »

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 lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
๐Ÿ˜œ
wyng

Re: Database Maintenance

Post by wyng »

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: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

Re: Database Maintenance

Post by MMFrLife »

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 lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
๐Ÿ˜œ
dypsis
Posts: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Database Maintenance

Post by dypsis »

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: 1335
Joined: Wed Apr 30, 2008 9:51 pm

Re: Database Maintenance

Post by dypsis »

And play dates are getting messed up.
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Database Maintenance

Post by Peke »

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