Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 279453 Details for
Bug 374357
new ebuild for media-sound/banshee-2.1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
suggested patch based on upstream bug 648592
0001-Make-Banshee-optimize-database-when-importing-large-.patch (text/plain), 2.21 KB, created by
Trevor Bowen
on 2011-07-08 15:46:34 UTC
(
hide
)
Description:
suggested patch based on upstream bug 648592
Filename:
MIME Type:
Creator:
Trevor Bowen
Created:
2011-07-08 15:46:34 UTC
Size:
2.21 KB
patch
obsolete
>From 03312de37a57f94e6b9b435ffcec37e201393a4d Mon Sep 17 00:00:00 2001 >From: Mackenan Grassi <mackenan@gmail.com> >Date: Sat, 11 Jun 2011 15:08:45 -0700 >Subject: [PATCH] Make Banshee optimize database when importing large quantity of files > >Importing 5,000+ files would dramatically slow down the database, causing high CPU usage and making the import process take far longer than it ever should. Upon restarting Banshee, everything would work normally because on startup Banshee would optimize the database. This patch makes Banshee optimize the database throughout the import process to prevent it from slowing down. >--- > .../DatabaseImportManager.cs | 1 + > .../Banshee.Database/BansheeDbConnection.cs | 2 +- > 2 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs >index 39f48a0..d9cd806 100644 >--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs >+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs >@@ -205,6 +205,7 @@ namespace Banshee.Collection.Database > // Reload every 20% or every 250 tracks, whatever is more (eg at most reload 5 times during an import) > if (counts[track.PrimarySourceId] >= Math.Max (TotalCount/5, 250)) { > counts[track.PrimarySourceId] = 0; >+ ServiceManager.DbConnection.OptimizeDatabase (); > track.PrimarySource.NotifyTracksAdded (); > } > >diff --git a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs >index e9bbbf5..363b935 100644 >--- a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs >+++ b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs >@@ -117,7 +117,7 @@ namespace Banshee.Database > } > } > >- private void OptimizeDatabase () >+ public void OptimizeDatabase () > { > bool needs_analyze = false; > long analyze_threshold = configuration.Get<long> ("Database", "AnalyzeThreshold", 100); >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 374357
:
279335
|
279451
| 279453