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

Re: direct MDB access for counting entries from Python



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.

Ciao, Michael.