[Collab-qa-commits] r1467 - udd/udd

Lucas Nussbaum lucas at alioth.debian.org
Sat Jun 6 21:23:42 UTC 2009


Author: lucas
Date: 2009-06-06 21:23:42 +0000 (Sat, 06 Jun 2009)
New Revision: 1467

Modified:
   udd/udd/ubuntu_bugs_gatherer.py
Log:
use truncate table instead of delete

Modified: udd/udd/ubuntu_bugs_gatherer.py
===================================================================
--- udd/udd/ubuntu_bugs_gatherer.py	2009-06-06 21:23:12 UTC (rev 1466)
+++ udd/udd/ubuntu_bugs_gatherer.py	2009-06-06 21:23:42 UTC (rev 1467)
@@ -46,11 +46,7 @@
       t.start()
 
     c = self.cursor()
-    c.execute("delete from ubuntu_bugs_subscribers")
-    c.execute("delete from ubuntu_bugs_duplicates")
-    c.execute("delete from ubuntu_bugs_tags")
-    c.execute("delete from ubuntu_bugs_tasks")
-    c.execute("delete from ubuntu_bugs")
+    c.execute("truncate ubuntu_bugs_subscribers, ubuntu_bugs_duplicates, ubuntu_bugs_tags, ubuntu_bugs_tasks, ubuntu_bugs")
 
     ok = True
     while ok:




More information about the Collab-qa-commits mailing list