Skip to content

Conversation

@Koc
Copy link
Contributor

@Koc Koc commented Mar 16, 2025

In our organization we have circles with thousands of people. This leads api for fetching collectives list extremely slow, up to 30s. This happens because we loading all members of the circle for canLeave check. With suggested change we can reduce amount of loaded users.

This PR is preparation for a fix. Actual fix in collectives repo.

@ArtificialOwl
Copy link
Member

please set $limit to 0 instead of null by default and use its value only if > 0

There should be better way to implement this, but I am still fine

Signed-off-by: Kostiantyn Miakshyn <[email protected]>
@Koc Koc force-pushed the feature/speedup-collectives-list branch from 1a31bae to a7f29f0 Compare March 17, 2025 17:35
@Koc
Copy link
Contributor Author

Koc commented Mar 17, 2025

@ArtificialOwl I did requested changes.

Can we merge it?
Should I backport it to v30?

@mejo- mejo- merged commit a61b517 into master Apr 1, 2025
31 checks passed
@mejo- mejo- deleted the feature/speedup-collectives-list branch April 1, 2025 10:47
@mejo-
Copy link
Member

mejo- commented Apr 1, 2025

/backport to stable31

@mejo-
Copy link
Member

mejo- commented Apr 1, 2025

/backport to stable30

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.

5 participants