-
Notifications
You must be signed in to change notification settings - Fork 7
feat: retrieve last message preview for conversation list (WPB-21093) #3721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # persistence/src/commonMain/db_user/migrations/121.sqm
|
| Branch | last-message-preview |
| Testbed | ubuntu-latest |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | microseconds (µs) |
|---|---|---|
| com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInFiles | 📈 view plot | 685.71 µs |
| com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemory | 📈 view plot | 593,742.30 µs |
| com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmark | 📈 view plot | 1,519,307.85 µs |
| com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmark | 📈 view plot | 27,207.89 µs |
|
| LEFT JOIN ( | ||
| SELECT | ||
| message_id, | ||
| conversation_id, | ||
| CASE | ||
| WHEN COUNT(DISTINCT asset_mime_type) = 1 THEN MIN(asset_mime_type) | ||
| ELSE NULL | ||
| END AS asset_mime_type, | ||
| COUNT(*) attachments_count | ||
| FROM MessageAttachments | ||
| GROUP BY message_id, conversation_id | ||
| ) AS AttachmentsContent ON LastMessage.message_id = AttachmentsContent.message_id AND LastMessage.conversation_id = AttachmentsContent.conversation_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please provide some benchmark info about the effect of this join when there are multiple conversations with many assets as last message
|
This PR is stale because it has been open 30 days with no activity. Please update it or close it in case is not relevant anymore. |



PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
Handle MULTIPART type and retrieve last message preview to be shown in conversation list based on number of attachements and content type.
For:
If the user received a mix of files and images/video/audio
We show : "username shared X files."
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.