Skip to content
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

Performance enhancement to group lists #509

Merged
merged 13 commits into from
Oct 8, 2024
Merged

Conversation

nplasterer
Copy link
Contributor

Closes #505

This adds the ability to specify what group parameters you want loaded and passed on group listing since json encoding can be costly for large lists of members.
This also adds the ability to specify a sort order for the groups based on last message.

@nplasterer nplasterer self-assigned this Oct 2, 2024
@nplasterer nplasterer marked this pull request as ready for review October 4, 2024 20:53
@nplasterer nplasterer requested a review from a team as a code owner October 4, 2024 20:53
src/index.ts Outdated
@@ -1274,6 +1299,18 @@ interface AuthParams {
historySyncUrl?: string
}

interface GroupParams {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a duplicate of the GroupOptions in GroupOptions.ts

@nplasterer
Copy link
Contributor Author

Action Groups iOS - Alix (Time ms) iOS - Bo (Time ms) Android - Alix (Time ms) Android - Bo (Time ms)
Loaded 1000 1725 1516 3686 3733
Loaded w params 1000 832 424 2632 1671
Synced 1000 11 4784 16 12755

@nplasterer nplasterer merged commit 334af67 into main Oct 8, 2024
2 of 4 checks passed
@nplasterer nplasterer deleted the np/groups-lite-perf branch October 8, 2024 05:58
Copy link

github-actions bot commented Oct 8, 2024

🎉 This PR is included in version 2.6.5 🎉

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.

Return last message in groups list
2 participants