From 8d829ddf36c9eda7e565d89082c73cc3af1861c0 Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 17 Aug 2025 18:37:56 -0400 Subject: [PATCH] Add index on payments.correlation_id --- init.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.sql b/init.sql index 923e909..9186024 100644 --- a/init.sql +++ b/init.sql @@ -4,3 +4,5 @@ CREATE UNLOGGED TABLE payments ( payment_processor VARCHAR(10), created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); + +CREATE INDEX idx_payments_correlation_id ON payments (correlation_id);