Skip to content

perf(llc): Move pinned messages pagination to SQL#2689

Draft
VelikovPetar wants to merge 23 commits into
masterfrom
feature/FLU-487_move_pinned_message_pagination_to_sql
Draft

perf(llc): Move pinned messages pagination to SQL#2689
VelikovPetar wants to merge 23 commits into
masterfrom
feature/FLU-487_move_pinned_message_pagination_to_sql

Conversation

@VelikovPetar
Copy link
Copy Markdown
Contributor

Submit a pull request

Linear: FLU-487
Review after: #2679

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

  • Refactor the pinned messages pagination to be performed on SQL level, instead of fetching all thread messages from DB, then paginating in-memory.
  • Fix limit always being applied from the beginning of the fetched messages
  • Add support for greaterThanOrEqual/lessThanOrEqual pagination

# Conflicts:
#	packages/stream_chat_persistence/CHANGELOG.md
…ture/FLU-485_optimize_read_message_from_db_part2

# Conflicts:
#	packages/stream_chat_persistence/CHANGELOG.md
#	packages/stream_chat_persistence/lib/src/dao/message_dao.dart
…b' into feature/FLU-485_optimize_read_message_from_db_part2
@VelikovPetar VelikovPetar changed the title perf(llc): Move thread messages pagination to SQL perf(llc): Move pinned messages pagination to SQL May 26, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f83c461-b660-4386-8cda-55a0af1e79c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/FLU-487_move_pinned_message_pagination_to_sql

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant