eda: Added Database::Begin & Commit to speed up Saving from Editor with SQLite driver
authorJerome St-Louis <jerome@ecere.com>
Fri, 30 Sep 2011 07:24:37 +0000 (03:24 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 30 Sep 2011 07:26:59 +0000 (03:26 -0400)
eda/libeda/src/gui.ec

index d49c420..5d4de9a 100644 (file)
@@ -1005,12 +1005,13 @@ public:
       OldLink link;
       String name = null;
 
+      editRow.tbl.db.Begin();
       for(link = editBoxes.first; link; link = link.next)
       {
          FieldDataBox dataBox = link.data;
          dataBox.Save();
       }
-
+      editRow.tbl.db.Commit();
       // ADDED THIS HERE FOR SQLITE TO REFRESH
       editRow.Find(list.fldId, middle, nil, list.list.currentRow.tag);