[OPENDJ-6775] Update User Search API to return total records in Single call Created: 06/Nov/19  Updated: 19/Nov/19

Status: Dev backlog
Project: OpenDJ
Component/s: core apis
Affects Version/s: 6.5.1
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Abhaykumar Kapale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Customer

Issue Links:
is related to OPENDJ-6745 Allow POST queries on a REST endpoint... Dev backlog
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.

Generated at Thu Aug 13 11:16:47 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.