From: Alexander Ebert Date: Tue, 15 Aug 2023 12:18:23 +0000 (+0200) Subject: Improve the performance of the export of conversation participants X-Git-Tag: 6.0.0_Beta_2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=913a395d9480578cbd4f12dc133ca2afd05540f5;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Improve the performance of the export of conversation participants --- diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index 861c8db..dad8b7a 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -1175,9 +1175,10 @@ class VB3or4xExporter extends AbstractExporter ON pm.userid = user.userid INNER JOIN " . $this->databasePrefix . "pmtext pmtext ON pmtext.pmtextid = pm.pmtextid + WHERE pm.pmid BETWEEN ? AND ? ORDER BY pm.pmid"; - $statement = $this->database->prepareStatement($sql, $limit, $offset); - $statement->execute(); + $statement = $this->database->prepareStatement($sql); + $statement->execute([$offset + 1, $offset + $limit]); while ($row = $statement->fetchArray()) { $participants = \explode(',', $row['participants']); $participants[] = $row['fromuserid'];