Categories: Misc / DotNet / Java / Coder / Linux / PHP Ask - La ask - La Answer

iTunes slows down with 48.000 songs

I have finally finished ripping my large CD collection and now have around 48,000 songs!

The problem is that this makes using iTunes very slow--not surprising given the amount of data I have. I need to spend some time fixing up CDDB typos, organisign genres, giving ratings etc but iTunes is now unbearably slow on my 17" flat-screen iMac. even finding tracks or scrolling is quite slow.

The good news is I run this machine as a server and when I access the library remotely (via Airport Extreme), the access is very fast. However, I cannot edit the info remotely.

Any ideas? eg a standalone app that allows you to edit and massage track info?
[670 byte] By [pedant] at [2007-11-9 12:41:06]
# 1 Re: iTunes slows down with 48.000 songs
Why not break it down into a number of playlists (say alphabetically. A>C, D>F, etc...), and edit them in playlist view?
either that, or use 'browse', and go through each artist one at a time
Nathan Adams at 2007-11-15 16:47:49 >
# 2 Re: iTunes slows down with 48.000 songs
Nathan, I'll give that a shot but I doubt it will do the trick. That does not stop the fact that iTunes has to manage the whole library.
pedant at 2007-11-15 16:48:49 >
# 3 Re: iTunes slows down with 48.000 songs
I'm dying to know... how many gig did that take?
thenightfly42 at 2007-11-15 16:49:56 >
# 4 Re: iTunes slows down with 48.000 songs
assuming that each song is around 4 MB, that is 192,000 MB. Divide that by 1024 (1024 MB = 1 GB), you get around 188 GB. That's more than 6 30GB iPods, or more than 12 15GB iPods.
ZoidbergD at 2007-11-15 16:50:50 >
# 5 Re: iTunes slows down with 48.000 songs
Here is the app that I use for mass tag edits, artwork searches, etc.

http://www.chaoticsoftware.com/ProductPages/MP3Rage.html

best
-m
MicFlash at 2007-11-15 16:51:49 >
# 6 Re: iTunes slows down with 48.000 songs
Originally posted by pedant
I have finally finished ripping my large CD collection and now have around 48,000 songs!

The problem is that this makes using iTunes very slow--not surprising given the amount of data I have. I need to spend some time fixing up CDDB typos, organisign genres, giving ratings etc but iTunes is now unbearably slow on my 17" flat-screen iMac. even finding tracks or scrolling is quite slow.

The good news is I run this machine as a server and when I access the library remotely (via Airport Extreme), the access is very fast. However, I cannot edit the info remotely.

Any ideas? eg a standalone app that allows you to edit and massage track info?

I get the same effect in iPhoto. I have several thousand photos in iPhoto, and loading iPhoto (and working in iPhoto) is very very slow; even with a 1GHz processor w/768 RAM. Point is large amount of files = large amount of drag.
mongoos150 at 2007-11-15 16:52:49 >
# 7 Re: iTunes slows down with 48.000 songs
It's around 200 gig (much of it is 192 AAC).

MP3 Rage is a nice tool, but not yet compatible with AAC tracks (only MP3s).
pedant at 2007-11-15 16:53:53 >
# 8 Re: iTunes slows down with 48.000 songs
AppleScript is your friend!
Doug Adams at 2007-11-15 16:55:00 >
# 9 Re: iTunes slows down with 48.000 songs
I have the same problem.. and I have only 6000 songs. The library itself is slow. Even starting and quitting itunes takes a long time. Search isn't as fast as it used to be.

I'm on a powerbook G4 500 with 1gb ram.

Is there anything that can be down about this? Should I trash prefs or something? Is there some kind of optimisation I can run?

thanks
ultrazero at 2007-11-15 16:55:57 >
# 10 Re: iTunes slows down with 48.000 songs
If you library is SLOW, then you need to rebuild it. I have started rebuilding mine once every 2 or 3 months, especially when I add lots of new music to it. The database file just gets funky. Delete the library and then just add all your tunes back it. It will improve the performance tremendously...
baggss at 2007-11-15 16:56:58 >
# 11 Re: iTunes slows down with 48.000 songs
But I've spent months fixing the tags. Won't this reset it?
ultrazero at 2007-11-15 16:57:57 >
# 12 Re: iTunes slows down with 48.000 songs
Uh, no. The tag info is save in the file on your HDD. The iTunes library is simply a database of the tag info that iTunes creates. I WOULD recommend, before deleting your library, that you select all of the song in your library, click on ADVANCED > ID3 TAGS >ID3 TAG VERSION and set it to V2.4 and let it go. That way you can be sure all of the tags iTunes is displaying are actually written to the corresponding files...
baggss at 2007-11-15 16:58:55 >
# 13 Re: iTunes slows down with 48.000 songs
Originally posted by baggss
If you library is SLOW, then you need to rebuild it. I have started rebuilding mine once every 2 or 3 months, especially when I add lots of new music to it. The database file just gets funky. Delete the library and then just add all your tunes back it. It will improve the performance tremendously...

So, you recommend just clearing the database file, keeping the XML library, & let it rebuild from there? Or just wiping the library totally & readding everything? The latter would lose your playcounts, & you'd have to backup your ratings in another field. Losing playcounts would suck for me.

My library started dogging around 18,000 tracks, and isn't getting any faster...
dekkerd at 2007-11-15 17:00:02 >
# 14 Re: iTunes slows down with 48.000 songs
Originally posted by baggss
Uh, no. The tag info is save in the file on your HDD. The iTunes library is simply a database of the tag info that iTunes creates. I WOULD recommend, before deleting your library, that you select all of the song in your library, click on ADVANCED > ID3 TAGS >ID3 TAG VERSION and set it to V2.4 and let it go. That way you can be sure all of the tags iTunes is displaying are actually written to the corresponding files...

Ok! This is what I wanted to hear. I know the tag info is saved in the file itself... but i swear the tags get funky sometimes. I know I've changed the tag info on the same songs a few times. Converting the tags to V2.4 will write everything (tags) I have in the Library to the file itself? Just double checking.

Also, as dekkerd said. I am concerned about losing my playcounts. Anyway around this.

Thanks for you help on Spymac too. I apologize for the double post. I thought I'd get more hits there.
ultrazero at 2007-11-15 17:01:06 >
# 15 Re: iTunes slows down with 48.000 songs
I just thought of this...

Perhaps you could use Applescript to preserve the playcounts? Maybe all of the playcount information could be put into an xml file. Then rebuild the library. Since all of your song tags will be the same, after you put them back into itunes, you could "load" the playcount info from the xml file.

It sounds like a job for Doug Adams!
ultrazero at 2007-11-15 17:01:58 >
# 16 Re: iTunes slows down with 48.000 songs
Originally posted by ultrazero
Ok! This is what I wanted to hear. I know the tag info is saved in the file itself... but i swear the tags get funky sometimes. I know I've changed the tag info on the same songs a few times. Converting the tags to V2.4 will write everything (tags) I have in the Library to the file itself? Just double checking.

Also, as dekkerd said. I am concerned about losing my playcounts. Anyway around this.

Thanks for you help on Spymac too. I apologize for the double post. I thought I'd get more hits there.

I know that since I started using the convert to V2.4 function, all of my tags have remained stable and the same. I suppose your mileage may vary, but mine has not. As for play counts etc, I can not say as I never use them anyways. If your really want to check the status of your tags, check them with another editor before you wipe the iTunes library to see what they look like.
baggss at 2007-11-15 17:03:03 >
# 17 Re: iTunes slows down with 48.000 songs
Originally posted by dekkerd
So, you recommend just clearing the database file, keeping the XML library, & let it rebuild from there? Or just wiping the library totally & readding everything? The latter would lose your playcounts, & you'd have to backup your ratings in another field. Losing playcounts would suck for me.

My library started dogging around 18,000 tracks, and isn't getting any faster...

Yes, clear the database file as described in my earlier post, don't delete the Library file. The only time I have deleted the library file is when iTunes has told me it corrupt or unreadable, and I have NEVER deleted the XML file. As I said in the other post, I don't use playcounts or rateings, so I can't say anything about them.
baggss at 2007-11-15 17:04:00 >
# 18 Re: iTunes slows down with 48.000 songs
Originally posted by ultrazero
Ok! This is what I wanted to hear. I know the tag info is saved in the file itself... but i swear the tags get funky sometimes. I know I've changed the tag info on the same songs a few times. Converting the tags to V2.4 will write everything (tags) I have in the Library to the file itself? Just double checking.

Also, as dekkerd said. I am concerned about losing my playcounts. Anyway around this.

Thanks for you help on Spymac too. I apologize for the double post. I thought I'd get more hits there.

The tags sure can get funky, it can get quite frustrating. The solution to this for me was to make sure the permissions were correct for the mp3's. It's not uncommon to unrar an album and you'll have read only permissions.

iTunes won't alert you to this and will let you tag the files as usual, sometimes you can play it will appear as if its worked. But wait little while or get info and you'll see the old tag info there because iTunes only wrote the new tags to the cache and not the mp3 file as well.

Before you convert all the tags to version 2.4, get info on the iTunes Music folder and go to the Ownership & Permissions section, it should read "You can" and the drop down menu should have "Read & Write". To make sure all the files within the library are like that click the "Apply to enclosed items..." button.

On the performance of iTunes, I have 11,000 songs, so it's understandable that iTunes is taking a while filtering through that many entries but it needs some optimization, I get beach balled far too often. I'm about to try importing my XML library in the hope that iTunes will rebuild a faster library file. It would probably give a faster library if I just added the files again but I'm not prepared to lose my date added and playcount metadata.
Rael at 2007-11-15 17:05:08 >
# 19 Re: iTunes slows down with 48.000 songs
Thanks for the tip Rael! I'd never thought of it as a permissions issue but that makes sense. I'll be sure to do it.

As far as iTunes' performace when dealing with large libraries, I'm surprised Apple hasn't released a magic-bullet app that would optimize the library. Are we the only people concerned with losing playcounts and other data? I'm with you, I get beach balled far too often. (granted, my 4 year-old computer doesn't help)

Let us know how importing just the XML file works.
ultrazero at 2007-11-15 17:06:07 >
# 20 Re: iTunes slows down with 48.000 songs
It seems iTunes will ignore the date added and playcount attributes of the XML file when importing, which is a shame because I need to keep both. I thought it would at least keep the playcounts, as it did when my Library became corrupt (a whole nother iTunes issue) and it recovered it with the XML file.

A new version of iTunes would've been nice with iLife '05 but to make improvements it's gotta keep in sync with the Windows version, so it'd take longer to see changes. It would be good to do what they did with iPhoto, although there are many other areas where they can optimize it compared to just parsing a library file. Still, iTunes feels the same as it was back on OS 9.
Rael at 2007-11-15 17:07:09 >
# 21 Re: iTunes slows down with 48.000 songs
I don't think anyone has said this yet, but could you delete some of the songs off of it? I mean with 48,000 songs there's bound to be at least a few songs you don't like. Heck, I have only 100 CD's (however many songs that is) and there's a few select songs from CD's I don't upload because I don't like them. Well, maybe you like all 48,000 songs, but it's just a suggestion.
BridgesOfStone at 2007-11-15 17:08:04 >
[an error occurred while processing this directive]
[an error occurred while processing this directive]