Skip to content

fix(db): add conversation order index - #1129

Open
FGadvancer wants to merge 2 commits into
openimsdk:mainfrom
FGadvancer:codex/conversation-index-main
Open

FGadvancer wants to merge 2 commits into
openimsdk:mainfrom
FGadvancer:codex/conversation-index-main

Conversation

@FGadvancer

@FGadvancer FGadvancer commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use a stable, deterministic order when loading the conversation list.
  • Add a SQLite partial expression index so the query does not need temporary sorting files on read-only filesystems.
  • Create the index during initial database setup and SDK version migration.

Testing

  • go test ./pkg/db -run TestConversationListSplitUsesVisibleOrderIndex -count=1 -v

@pull-request-size pull-request-size Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 10, 2026

This branch has not been deployed

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

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants