Pagination for fetch all the users list of all organisation #132
Replies: 1 comment 1 reply
-
@snehalsabade This is due to ES search limitation. Max records that can be fetched from ES by default is 10k records. Please refer : ES doc. Also its not good to fetch 3L + records in one API fetch and display it using pagination. It is better to use different filters like by name or by some specific details and fetch the records to display. Otherwise the page rendering and performance will be very bad. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to fetch all the users list of all organisation
This is the API https://sunbirdsaas.com/api/user/v1/search through which I'm fetching all users of all the organization.
{
"request": {
"filters": {
"rootOrgId": []
}
}
}
In the response I'm getting about 3,60,000 users count.
I tried to add offset=9990 limit=10, but getting server side error
{
"request": {
"filters": {
"rootOrgId": []
},
"limit":10,
"offset":9991
}
}
I want to show all the 3.60,000 users in the UI through pagination but unable to achieve that.
Can anyone help me in this?
@vinukumar-vs @rajeevsathish @rajeshkumaravel @Krishnaj20
Beta Was this translation helpful? Give feedback.
All reactions