Skip to content

Parallelize invoice query scan and lazy-load avatar images - #965

Merged
Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
deeejaymu-afk:fix/issues-915-914-913-912
Oct 20, 2026
Merged

Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
deeejaymu-afk:fix/issues-915-914-913-912

Conversation

@deeejaymu-afk

Copy link
Copy Markdown
Contributor

Summary

Closes #915
Closes #914
Closes #913
Closes #912

Test plan

  • Manual review of horizonServer.ts batching logic (no build/test run performed per task constraints)
  • Verify avatar images still render correctly in CreatorMarketplace and PresenceBar

…l N+1-style RPC calls

fetchInvoicesForAddress scanned candidate invoice ids one at a time with
a sequential await in a for-loop, so each id's RPC/cache lookup paid the
full round-trip latency of the previous one. Batch the scan with
Promise.all so lookups within a batch run concurrently.
…and PresenceBar

These <img> tags render in lists/bars without loading hints, so
off-screen avatars (marketplace grid, presence bar) are fetched eagerly.
Add loading=lazy and decoding=async so the browser defers them.
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@deeejaymu-afk is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@deeejaymu-afk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kingsman-99
Kingsman-99 merged commit 303543f into Stellar-split:main Oct 20, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants