Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374357
Collapse All | Expand All

(-)a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs (+1 lines)
Lines 205-210 namespace Banshee.Collection.Database Link Here
205
            // Reload every 20% or every 250 tracks, whatever is more (eg at most reload 5 times during an import)
205
            // Reload every 20% or every 250 tracks, whatever is more (eg at most reload 5 times during an import)
206
            if (counts[track.PrimarySourceId] >= Math.Max (TotalCount/5, 250)) {
206
            if (counts[track.PrimarySourceId] >= Math.Max (TotalCount/5, 250)) {
207
                counts[track.PrimarySourceId] = 0;
207
                counts[track.PrimarySourceId] = 0;
208
                ServiceManager.DbConnection.OptimizeDatabase ();
208
                track.PrimarySource.NotifyTracksAdded ();
209
                track.PrimarySource.NotifyTracksAdded ();
209
            }
210
            }
210
211
(-)a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs (-2 / +1 lines)
Lines 117-123 namespace Banshee.Database Link Here
117
            }
117
            }
118
        }
118
        }
119
119
120
        private void OptimizeDatabase ()
120
        public void OptimizeDatabase ()
121
        {
121
        {
122
            bool needs_analyze = false;
122
            bool needs_analyze = false;
123
            long analyze_threshold = configuration.Get<long> ("Database", "AnalyzeThreshold", 100);
123
            long analyze_threshold = configuration.Get<long> ("Database", "AnalyzeThreshold", 100);
124
- 

Return to bug 374357