You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
searchUsers method is very slow to return data when searching for common words #16
for (JsonElementjsonElement : jsonArray) { // Add all user info objects into one list
jsonObjects.add(jsonElement.getAsJsonObject());
}
} else {
break;
}
}
Paginating through the API automatically to get all the data at once is an inefficient way handle search. This is slow when searching for common terms in a username, i.e. "guardian"
Ideally, you should simply expose the pagination and allow developers to customize this a bit so that it can be performant
This has now been settled with the addition of Pagination and the updated #searchUsers(String name).
Thank you for your suggestion. Please let me know if there are any further issues.
Activity
dec4234 commentedon Mar 10, 2022
Do you have something like an Iterator in mind using hasNext() and next()?
Update lots of stuff, settle #16
dec4234 commentedon May 6, 2024
This has now been settled with the addition of Pagination and the updated #searchUsers(String name).
Thank you for your suggestion. Please let me know if there are any further issues.