Alternative Update "algorithm"

Where are we heading with kPlaylist?

Alternative Update "algorithm"

Postby grav » Tue Apr 11, 2006 10:10 pm

I was pondering about how it would be possible to make kplaylist update the database a bit faster.

I have my albums sorted as albums\artist - year - albumtitle, and I only add or remove whole albums, so the database should actually only look for new subfolders in the albums directory and add the contents (and vice versa when removing).

Would it make sense to add such an alternative upgrade option or am I dealing with a very special "use case"?
grav
 
Posts: 5
Joined: Tue Apr 11, 2006 1:28 pm
Location: Denmark

Re: Alternative Update "algorithm"

Postby aba » Tue Apr 11, 2006 10:42 pm

grav wrote:I was pondering about how it would be possible to make kplaylist update the database a bit faster.

I have my albums sorted as albums\artist - year - albumtitle, and I only add or remove whole albums, so the database should actually only look for new subfolders in the albums directory and add the contents (and vice versa when removing).

Would it make sense to add such an alternative upgrade option or am I dealing with a very special "use case"?


There is something called 'automatic database sync' in Settings->Filehandling. When browsing new or changed directories it
will automatically add or update. If this option is enabled, you don't need to run the update. Just browse via kP to the
actual directory.

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby grav » Wed Apr 12, 2006 9:03 am

Thanks - didn't know that one existed.
Still it requires one to browse the new directories.

My point is that if you make the assumption that new subdir <=> new files you could save alot of time updating.

The above bi-implication might be a bit too narrow for many people, but it's valid in my case.
grav
 
Posts: 5
Joined: Tue Apr 11, 2006 1:28 pm
Location: Denmark

Postby aba » Wed Apr 12, 2006 3:19 pm

grav wrote:Thanks - didn't know that one existed.
Still it requires one to browse the new directories.

My point is that if you make the assumption that new subdir <=> new files you could save alot of time updating.

The above bi-implication might be a bit too narrow for many people, but it's valid in my case.


There is another option; running a cronjob for updating in the background, please look
at the following post:

http://www.kplaylist.net/forum/viewtopic.php?t=68&highlight=cron
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby grav » Wed Apr 12, 2006 3:27 pm

Thanks for the link, I'll look into it!
grav
 
Posts: 5
Joined: Tue Apr 11, 2006 1:28 pm
Location: Denmark


Return to Development



cron