/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 22:44:28	203
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 22:52:22	204
@@ -848,7 +848,7 @@
         }
         public void UpdateGBPVRPrograms(List<IPROGRAMME> programs)
         {
-            int ChunkSize = 500;
+            int ChunkSize = 512;
             var ChunkList = programs.Chunk<IPROGRAMME>(ChunkSize);
 
             double total = programs.Count;
@@ -861,7 +861,7 @@
                 //Stopwatch st2 = new Stopwatch();
                 //st2.Start();
                 //progress = 100.0 * (index / total);
-                gLog.Warn.WriteLine("Inserting {0} gbpvr programs ({1} of {2})", p.Count(), index, total);   
+                //gLog.Warn.WriteLine("Inserting {0} gbpvr programs ({1} of {2})", p.Count(), index, total);   
                 if (!InsertProgramEntryDatabase(p))
                 {
                     gLog.Error.WriteLine("Failed to insert one or more program(s)");
@@ -869,7 +869,7 @@
                 //st2.Stop();
                 //gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds", st2.Elapsed.TotalSeconds);
                 //gLog.Warn.WriteLine(System.Environment.NewLine);
-                //gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Inserting GBPVR Programs: {0:00}%", (int)progress)));
+                gLog.ReportProgress(this, new ReportProgressEventArgs(0, string.Format("Inserting {0} gbpvr programs ({1} of {2})", p.Count(), index, total)));
                 index += (double)p.Count();                
             }
             st1.Stop();

 

  ViewVC Help
Powered by ViewVC 1.1.22