You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove cache and use dynamic ledger count query
- Remove singleLedgerOptimization cache structure
- Add countLedgersInBucket function to Store
- Modify isSingleLedger to query count on each call
- Update applyLedgerFilter and getLedgerFilterSQL to accept context
- Inject countFunc via factory options in module.go
- Remove all UpdateSingleLedgerState calls from driver
- Add Ctx field to ResourceQuery for context propagation
- Update all call sites to pass context parameter (26 locations)
@@ -77,12 +77,12 @@ func (h accountsResourceHandler) ResolveFilter(opts common.ResourceQuery[any], o
77
77
DistinctOn("asset").
78
78
ColumnExpr("first_value((post_commit_effective_volumes).inputs - (post_commit_effective_volumes).outputs) over (partition by (accounts_address, asset) order by effective_date desc, seq desc) as balance").
ColumnExpr(`first_value(moves.post_commit_effective_volumes) over (partition by (transactions_id, accounts_address, asset) order by seq desc) as post_commit_effective_volumes`).
132
132
Where("transactions_id in (select id from dataset)")
0 commit comments