From 5d0a0592b739f67e2fad2dc40a336a0d424444f7 Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Sun, 27 Oct 2024 16:33:17 -0400 Subject: [PATCH 1/4] add status index [goreleaser] --- services/rfq/relayer/reldb/base/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rfq/relayer/reldb/base/model.go b/services/rfq/relayer/reldb/base/model.go index c25681fc36..9912c20fc6 100644 --- a/services/rfq/relayer/reldb/base/model.go +++ b/services/rfq/relayer/reldb/base/model.go @@ -84,7 +84,7 @@ type RequestForQuote struct { // this is not effected by the message.sender nonce. OriginNonce int `gorm:"index"` // Status is the current status of the event - Status reldb.QuoteRequestStatus + Status reldb.QuoteRequestStatus `gorm:"index"` // BlockNumber is the block number of the event BlockNumber uint64 // RawRequest is the raw request, hex encoded. From 5791461d1e6bd0b98350f5c8e11a4f8f905d609a Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Sun, 27 Oct 2024 16:41:15 -0400 Subject: [PATCH 2/4] [goreleaser] full status name --- services/rfq/relayer/reldb/base/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rfq/relayer/reldb/base/model.go b/services/rfq/relayer/reldb/base/model.go index 9912c20fc6..0ff1aee044 100644 --- a/services/rfq/relayer/reldb/base/model.go +++ b/services/rfq/relayer/reldb/base/model.go @@ -84,7 +84,7 @@ type RequestForQuote struct { // this is not effected by the message.sender nonce. OriginNonce int `gorm:"index"` // Status is the current status of the event - Status reldb.QuoteRequestStatus `gorm:"index"` + Status reldb.QuoteRequestStatus `gorm:"index:idx_rfq_status_name"` // BlockNumber is the block number of the event BlockNumber uint64 // RawRequest is the raw request, hex encoded. From 0726f73eddc92183474579f773e68bde11247dba Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Sun, 27 Oct 2024 16:49:26 -0400 Subject: [PATCH 3/4] add status column properly [goreleaser] --- services/rfq/relayer/reldb/base/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rfq/relayer/reldb/base/model.go b/services/rfq/relayer/reldb/base/model.go index 0ff1aee044..bc083d0b2e 100644 --- a/services/rfq/relayer/reldb/base/model.go +++ b/services/rfq/relayer/reldb/base/model.go @@ -84,7 +84,7 @@ type RequestForQuote struct { // this is not effected by the message.sender nonce. OriginNonce int `gorm:"index"` // Status is the current status of the event - Status reldb.QuoteRequestStatus `gorm:"index:idx_rfq_status_name"` + Status reldb.QuoteRequestStatus `gorm:"column:status;index:idx_rfq_status_name"` // BlockNumber is the block number of the event BlockNumber uint64 // RawRequest is the raw request, hex encoded. From b6c06c1f50daa2494ad23fba764f758b6ea406d3 Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Sun, 27 Oct 2024 16:55:26 -0400 Subject: [PATCH 4/4] guard db [goreleaser] --- services/rfq/guard/guarddb/base/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rfq/guard/guarddb/base/model.go b/services/rfq/guard/guarddb/base/model.go index 9cac79e4e9..bf2e08d42b 100644 --- a/services/rfq/guard/guarddb/base/model.go +++ b/services/rfq/guard/guarddb/base/model.go @@ -41,7 +41,7 @@ type PendingProvenModel struct { // TxHash is the hash of the relay transaction on destination TxHash string // Status is the status of the event - Status guarddb.PendingProvenStatus + Status guarddb.PendingProvenStatus `gorm:"column:status;index:idx_guard_status_name"` // BlockNumber is the block number of the event BlockNumber uint64 }