perf(fulfillment): 优化本地能力选号查询与索引

This commit is contained in:
yml
2026-11-23 17:18:39 +08:00
parent d5422b0ecd
commit f7a5979f9b
7 changed files with 225 additions and 11 deletions
+3 -1
View File
@@ -2118,7 +2118,7 @@ class AccountCommodityState(Base):
"account_id",
),
Index(
"ix_account_commodity_eligibility",
"ix_account_commodity_candidate",
"platform",
"scope",
"commodity_id",
@@ -2126,6 +2126,8 @@ class AccountCommodityState(Base):
"offer_state",
"valid_until",
"account_id",
"last_exchange_at",
"observed_at",
),
Index(
"ix_account_commodity_account",