Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
perf(db): add index for attempt_id merchant_id (#1993)
Nishant Joshi57d22b966b91
diff --git a/migrations/2023-08-23-090712_payment_attempt_perf_idx/down.sql b/migrations/2023-08-23-090712_payment_attempt_perf_idx/down.sqlnew file mode 100644index 0000000000..ea24c1d1f3--- /dev/null+++ b/migrations/2023-08-23-090712_payment_attempt_perf_idx/down.sql@@ -0,0 +1,3 @@+-- This file should undo anything in `up.sql`++DROP INDEX IF EXISTS payment_attempt_attempt_id_merchant_id_index;diff --git a/migrations/2023-08-23-090712_payment_attempt_perf_idx/up.sql b/migrations/2023-08-23-090712_payment_attempt_perf_idx/up.sqlnew file mode 100644index 0000000000..dae559a2c5--- /dev/null+++ b/migrations/2023-08-23-090712_payment_attempt_perf_idx/up.sql@@ -0,0 +1,3 @@+-- Your SQL goes here+CREATE INDEX payment_attempt_attempt_id_merchant_id_index ON payment_attempt (attempt_id, merchant_id);+