[OPENDJ-6775] Update User Search API to return total records in Single call Created: 06/Nov/19 Updated: 19/Nov/19
|Support Ticket IDs:|
Current OpenDJ REST API does not provide total records on a single search call. Support says we have to make two calls, which is not efficient.
|Comment by Jean-Noël Rouvignac [ 19/Nov/19 ]|
I am afraid this looks like the UI search problem again. First they ask for total number of results, paginated, then they complain about bad performance (because of the total count). Finally they complain that when they paginate, new records may appear in the middle of "their" results while they are going through the pages. This is a vicious circle I have already been through.
|Comment by Ludovic Poitou [ 19/Nov/19 ]|
Currently, DS cannot provide an estimate of the number of results without fully parsing all candidate entries and counting them. Especially when pagination is enabled, this is even more expensive.
The REST interface never returns the total number and we're reluctant to implement this as it will consume a lot of resources and impact performances of all requests.