Customer wishes to have FR DS return estimated size in the simple paged results response control:
Can we create requirement to support size estimation on single page controls? We need this functionality for sure, because we don't want to create index for each role if we use VLV index. Seems simple page is the better option for us.
And we need to know how many entries are matching, which will give the client better usability.
So we need the size estimation on single page controls.
Have already informed customer that the FR DS does not provide a size estimate in the response control and thus sets it to 0.
Q: But with simple paged result, how can I know how many records are matching?
A: RFC 2696 for the simple paged results control has this to say:
In the control returned to the client, the size MAY be set to the server's estimate of the total number of entries in the entire result set. Servers that cannot provide such an estimate MAY set this size to zero (0).
And there is also
OPENDJ-1428 that had addressed the same matter in the past.