mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
(fix): wrap collection mapping query in silent() to prevent hook events
The find() query on dbForProject triggers lifecycle hooks (Usage, UserEvents, FunctionCache) that generate Redis messages, causing OOM under CI parallel load. Wrapping in silent() prevents these hooks from firing during the mapping query. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
21e6715bd1
commit
796179decd
1 file changed
+6
-4
@@ -113,10 +113,12 @@ class Metadata implements Decorator
|
||||
|
||||
try {
|
||||
$collections = $this->authorization->skip(
|
||||
fn () => $this->dbForProject->find($databaseKey, [
|
||||
\Utopia\Database\Query::select(['$id', '$sequence']),
|
||||
\Utopia\Database\Query::limit(5000),
|
||||
])
|
||||
fn () => $this->dbForProject->silent(
|
||||
fn () => $this->dbForProject->find($databaseKey, [
|
||||
\Utopia\Database\Query::select(['$id', '$sequence']),
|
||||
\Utopia\Database\Query::limit(5000),
|
||||
])
|
||||
)
|
||||
);
|
||||
|
||||
foreach ($collections as $col) {
|
||||
|
||||
Reference in new issue
Block a user