Skip to content

Commit 7a5505c

Browse files
committed
Added comment
1 parent 461174e commit 7a5505c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Plugin/rest/resource/WebformAllFormSubmissions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public function get(string $webform_id): ModifiedResourceResponse {
112112

113113
$requestQuery = $this->currentRequest->query;
114114

115+
// We use raw SQL to fetch submission sids and uuids.
116+
// This is to avoid degraded performance by having to load every
117+
// single submission through the webform submissions storage.
115118
$query = 'SELECT sid, uuid FROM webform_submission WHERE webform_id = :webform_id';
116119

117120
foreach (self::ALLOWED_DATETIME_QUERY_PARAMS as $param => $operator) {

0 commit comments

Comments
 (0)