commit cover every 100 songs on loading

This commit is contained in:
Alexander Eckart committed 2013-01-04 12:09:51 +01:00
1 parent 5388b6f816
commit 03b18f04d9
1 file changed
+3
+3
View File
@@ -1050,8 +1050,11 @@ namespace Vocaluxe.Base
_CoverLoadIndex++; _CoverLoadIndex++;
if (i % 100 == 0) if (i % 100 == 0)
{
CDataBase.CommitCovers();
GC.Collect(); GC.Collect();
} }
}
_CoverLoaded = true; _CoverLoaded = true;
CDataBase.CommitCovers(); CDataBase.CommitCovers();