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

Improve the performance by having equal operator instead of LIKE operator when counting total users #480

Merged
merged 4 commits into from
Nov 22, 2023

Conversation

Kanapriya
Copy link
Contributor

@Kanapriya Kanapriya commented Aug 8, 2023

Resolves : wso2/product-is#16324

Carbon Kernel version needs to be updated in this PR, before merging this PR, this PR needs to be merged - wso2/carbon-kernel#3642

.getSecondaryUserStoreManager(domainName);
}
try {
if (secondaryUserStoreManager instanceof JDBCUserStoreManager) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What will happen if the userstore manager is not an instance of JDBCUserStoreManager? It will return the totalUsers as 0

Copy link
Contributor Author

@Kanapriya Kanapriya Aug 31, 2023

Choose a reason for hiding this comment

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

No, this will return the page size and if the limit for the page size is not defined, then the max number of users returned in the response. That is simply the number of users in the response at that time.

Resolve conflicts

resolve conflicts
@Kanapriya Kanapriya merged commit 81afde1 into wso2-extensions:master Nov 22, 2023
3 checks passed
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.

SQL LIKE Operator causing performance bottleneck
2 participants