From 7df3778cb53736394e1c27a6cdb0fee372201bf3 Mon Sep 17 00:00:00 2001 From: Benjamin Piouffle Date: Fri, 3 Jan 2025 14:09:35 +0100 Subject: [PATCH] perf(migrations): comment out unused index for manual investigations --- migrations/20241230093753-drop-unused-indexes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20241230093753-drop-unused-indexes.js b/migrations/20241230093753-drop-unused-indexes.js index 0bf92b73612..19ef5a9636e 100644 --- a/migrations/20241230093753-drop-unused-indexes.js +++ b/migrations/20241230093753-drop-unused-indexes.js @@ -12,7 +12,7 @@ module.exports = { 'activities__from_collective_id', // Table: Activities. Size: 100 MB. Replaced by activities__from_collective_id_simple, which skips the transactions activities. 'activities__host_collective_id', // Table: Activities. Size: 88 MB. Replaced by activities__host_collective_id_simple, which skips the transactions activities. 'orders__req_ip', // Table: Orders. Size: 21 MB. The fraud detection uses redis, not the DB. - 'payment_methods__fingerprint', // Table: PaymentMethods. Size: 16 MB + // 'payment_methods__fingerprint', // Table: PaymentMethods. Size: 16 MB. Keeping it for manual investigations. // 'UploadedFiles_s3_hash', // Table: UploadedFiles. Size: 16 MB. This one is unused because we've disabled Klippa, but we want to keep it in case we re-enable the feature. 'transaction_wise_transfer_id', // Table: Transactions. Size: 8144 kB 'expense_tag_stats_tag', // View: ExpenseTagStats. Size: 6864 kB. We're seemingly never fetching BY tag.