[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: direct MDB access for counting entries from Python



Michael Ströder wrote:
> On 1/16/20 3:57 PM, Michael Ströder wrote:
>> In my monitoring check I'd like to indicate how many entries are in a
>> database.
>>
>> Currently I'm using the no-op search control without any filtering to
>> count the entries which is obviously a huge waste of CPU and I/O
>> ressources for just retrieving the raw number of DB entries.
>>
>> Is it easily possible to access the id2e sub-DB and query number of entries?
> 
> Ideally this should be added to cn=monitor along with olmMDBPagesMax and
> friends.

Submit an ITS enhancement request.

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/