From d42e4c0bcd9a2837526700c931a8262f2db0deeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Wed, 29 Jan 2025 17:10:32 -0400 Subject: [PATCH] FOUR-21555 Performance backend improvements --- ...atus_user_id_to_process_requests_table.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 database/migrations/2025_01_29_205842_add_index_process_id_status_user_id_to_process_requests_table.php diff --git a/database/migrations/2025_01_29_205842_add_index_process_id_status_user_id_to_process_requests_table.php b/database/migrations/2025_01_29_205842_add_index_process_id_status_user_id_to_process_requests_table.php new file mode 100644 index 0000000000..7d03ad4362 --- /dev/null +++ b/database/migrations/2025_01_29_205842_add_index_process_id_status_user_id_to_process_requests_table.php @@ -0,0 +1,27 @@ +index(['process_id', 'status', 'user_id']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('process_requests', function (Blueprint $table) { + $table->dropIndex(['process_id', 'status', 'user_id']); + }); + } +};