In this case it could be better to disable the index during the
scanning, at least in a large library, and enable them after the
scanning process has finished. I need to experiment a bit and I think I
also need to add some log point so we are sure the time is spend in the
database and not in file I/O or caused by background scheduler running
slowly to allow music playback during scanning. Custom Scan runs in the
main LMS process and not in the scanner process as the main LMS scanner
does.
Check out NYTProf. It is an excellent tool! (though 1.5h worth of
scanning might take forever to analyze :-))
http://wiki.slimdevices.com/index.php/Profiling
It shows you where the program is spending time (queries, commits, file
reading etc.), even how many times a particular line was executed etc.
--
Michael
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta