minor performance tuning: avoid multiple db roundtrips;
authorwenzelm
Mon, 21 Aug 2023 10:55:30 +0200
changeset 78545 5f4ca329fde4
parent 78544 3be0437759cf
child 78546 e3ae7293c5df
minor performance tuning: avoid multiple db roundtrips;
src/Pure/Tools/build_process.scala
--- a/src/Pure/Tools/build_process.scala	Mon Aug 21 10:53:50 2023 +0200
+++ b/src/Pure/Tools/build_process.scala	Mon Aug 21 10:55:30 2023 +0200
@@ -380,9 +380,8 @@
           List.from[String], res => res.string(Base.build_uuid))
 
       if (old.nonEmpty) {
-        for (table <- build_uuid_tables) {
-          db.execute_statement(table.delete(sql = Generic.build_uuid.where_member(old)))
-        }
+        val sql = Generic.build_uuid.where_member(old)
+        db.execute_statement(SQL.MULTI(build_uuid_tables.map(_.delete(sql = sql))))
       }
     }