Improved the performance by using bulk operations
authorAlexander Ebert <ebert@woltlab.com>
Mon, 20 Jul 2020 16:22:15 +0000 (18:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 20 Jul 2020 16:22:15 +0000 (18:22 +0200)
commit4c1a368a14dc8e2a8e68efec2fb72f5751e11368
tree2d1f6f4f5b1177d03bf7b07635a53f1aa8c1df5b
parent1b3975bbc4780f623b78b8515c30928b0c80f54e
Improved the performance by using bulk operations

`DatabaseObjectEditor::create()` returns the id of the created object, forcing the database to sync the new row before returning the result.

Inserting them in bulk and querying the ids afterwards is more efficient, by allowing the database to flush data in bulk.
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php