Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add status index #3340

Merged
merged 4 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/rfq/guard/guarddb/base/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion services/rfq/relayer/reldb/base/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"column:status;index:idx_rfq_status_name"`
// BlockNumber is the block number of the event
BlockNumber uint64
// RawRequest is the raw request, hex encoded.
Expand Down
Loading