Scanning media

General discussions.

Moderator: moderators

Scanning media

Postby HerrNilsson » Fri Aug 17, 2012 5:21 am

Greetings

I'm using subsonic on a daily basis and with over 3TB of music (mostly mp3).
I've used to run the scan every night, but now that i have this amount of music it takes to long so i've run it once a week.
The problem is that it takes like two days to run the scan.
If i get some new music i dont want to wait a week for the next scan, and i dont want to run it manually cause it takes two days.

My first question is, should i take two days? What can i do to get it to scan faster? CPU? Disk? RAM?
Second, is there another way to add an album besides rescanning the whole library?

I run this on a virtual (host is XenServer 6.0.2) Ubuntu Server 12.04 with 2GBs of RAM.

Thanks!
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Scanning media

Postby hakko » Fri Aug 17, 2012 5:45 am

What version are you using? It's reported that Sindre added a database index that increased scanning speed in 4.7beta3 compared to 4.7beta2.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Scanning media

Postby HerrNilsson » Fri Aug 17, 2012 5:48 am

Well i have 4.7.beta2 (build 3011) – June 8, 2012

But will i see that musch difference?
is it CPU that limits scanning time or what is it?

EDIT: What is the best practice for upgrading? Couldnt find a "how to".
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am

Re: Scanning media

Postby hakko » Fri Aug 17, 2012 6:10 am

Just run the latest 4.7 installer for your system. The limit is mainly connected to the database, and because of the layout of the database, the db engine is forced to choose a bad execution plan. I'm generally in favor of optimizing databases over buying new hardware.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Scanning media

Postby HerrNilsson » Fri Aug 17, 2012 6:18 am

Alright thanks.
I run the standalone installer so whould i just copy the subsonic.war and subsonic-booter-jar-with-dependencies.jar?
The subsonic.sh is where my settings are and i dont want to replace that one?!


Okey i did this
Stopped the process
untared it
saved the information in subsonic.sh from SUBSONIC_HOME to SUBSONIC_DEFAULT_PLAYLIST_FOLDER
and then copied subosnic.sh, subsonic.war and subsonic-booter-jar-with-dependencies.jar to the installation folder.
Edited subsonic.sh with my old information
launched subosnic.sh

Now seems to scan 400 files a second istead of 3.
HerrNilsson
 
Posts: 60
Joined: Fri Aug 17, 2012 5:13 am


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests