From 71bccff3783dc4402b99d2dfc13d69c9b120049d Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Wed, 12 Mar 2025 20:40:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20back:=20add=20index=20to?= =?UTF-8?q?=20ensure=20query=20planner=20picks=20an=20index=20when=20listi?= =?UTF-8?q?ng=20trash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/node/src/services/documents/entities/drive-file.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tdrive/backend/node/src/services/documents/entities/drive-file.ts b/tdrive/backend/node/src/services/documents/entities/drive-file.ts index 7ecb3f85..9d4c7d07 100644 --- a/tdrive/backend/node/src/services/documents/entities/drive-file.ts +++ b/tdrive/backend/node/src/services/documents/entities/drive-file.ts @@ -54,6 +54,9 @@ export type AVStatus = AVStatusSafe | AVStatusUnsafe; // Needs to be globally unique (no `company_id`) because it's the only key that OnlyOffice // will return to us to identify the document being edited. Convenient for other plugins too. ["editing_session_key"], + + // For trash folder enumeration. the is_in_trash above was not always picked by the planner + ["creator", "is_in_trash", "scope", "company_id"], ], primaryKey: [["company_id"], "id"], type: TYPE,