Skip to content

perf: introduce offline sync event limit - #3773

Merged
isekovanic merged 2 commits into
developfrom
perf/introduce-offline-sync-event-limit
Aug 14, 2026
Merged

perf: introduce offline sync event limit#3773
isekovanic merged 2 commits into
developfrom
perf/introduce-offline-sync-event-limit

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

🎯 Goal

Implements this spec.

Since most other stuff is already supported by the SDK, here we introduce:

  • A way to limit the number of sync events we want to go through (regardless of what number the server returns)
  • We anyway still do queryChannels so this just prevents additional DB pressure if we get many, many events
  • The default stays at 250

🛠 Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

🧪 Testing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 1991 KB 1992 KB +297 B 🟡

@isekovanic
isekovanic merged commit 3e56a09 into develop Aug 14, 2026
5 checks passed
@isekovanic
isekovanic deleted the perf/introduce-offline-sync-event-limit branch August 14, 2026 14:18
@github-actions github-actions Bot mentioned this pull request Aug 14, 2026
6 tasks
@stream-ci-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 9.7.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants