[Moved from the merges list]

Dnia 2009-11-10, wto o godzinie 00:14 +0000, Peter pisze:
> That maybe be the case - but this was not the impression I had from
> watching the UI, where the progress bar does the three media types
> in stages.

It definitely isn't so, it was just something that could be done.

> I had also been thinking about splitting the task into new files
> (which
> should be done first) and checking for updates to old files (which can
> be done later). I think this is possible at the cost of lots of access
> to
> the Moovida database at the start of the scan.

Currently the scanner looks at every file in the directory in question,
tries to locate it in the database and reads metadata from it if the
file is new or has changed. Looking for new files would mean to only see
if it's already in the database and ignore it otherwise. Then going the
other way around - list all files in the database and see if they've
changed. I think a much bigger cost would be traversing the filesystem
twice. On the other hand, first run could also build a list of files
to-be-checked... Well, I actually don't think all this would mean that
much of a speed up... After all, how much time can comparison of two
timestamps take...

> However, this is much bigger task and given there is apparently a new
> scanner in progress, I would rather not waste too much time on what
> might be soon obsolete code.

Well, yeah, that's what I meant - to take it into consideration in the
new scanner.

-- 
Cheers
Michał (Saviq) Sawicz

Attachment: signature.asc
Description: To jest część wiadomości podpisana cyfrowo

Reply via email to