Skip to content

perf(paymaster): batch subscription check over workspaces#550

Merged
Kuchizu merged 4 commits into
masterfrom
perf/paymaster-subscription-check
May 11, 2026
Merged

perf(paymaster): batch subscription check over workspaces#550
Kuchizu merged 4 commits into
masterfrom
perf/paymaster-subscription-check

Conversation

@Kuchizu
Copy link
Copy Markdown
Member

@Kuchizu Kuchizu commented May 6, 2026

Replaces find({}).toArray() over hawk.workspaces with a projected cursor processed in batches of 25. fetchPlans gets a projection too.

Comment thread workers/paymaster/src/index.ts Outdated
neSpecc
neSpecc previously approved these changes May 6, 2026
e11sy
e11sy previously approved these changes May 6, 2026
Comment thread workers/paymaster/src/index.ts Outdated
Comment thread workers/paymaster/src/index.ts Outdated
@Kuchizu Kuchizu dismissed stale reviews from e11sy and neSpecc via e5ea73e May 8, 2026 01:49
@Kuchizu Kuchizu requested review from e11sy and neSpecc May 8, 2026 01:49
@Kuchizu Kuchizu merged commit 2f0bad0 into master May 11, 2026
5 checks passed
@Kuchizu Kuchizu deleted the perf/paymaster-subscription-check branch May 11, 2026 22:21
Kuchizu added a commit that referenced this pull request May 11, 2026
* feat(metrics): expose worker metrics over HTTP (#547)

* perf(notifier): project only notifications field when loading rules (#551)

* perf(notifier): project only notifications field when loading rules

* test(notifier): update findOne assertion for projection arg

* perf(paymaster): batch subscription check over workspaces (#550)

* perf(paymaster): batch subscription check over workspaces

* test(paymaster): cover multi-batch dispatch in subscription check

* refactor(paymaster): pass batch into flush and clear it explicitly

---------

Co-authored-by: Kuchizu <70284260+Kuchizu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants