[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: direct MDB access for counting entries from Python
- To: Michael Ströder <michael@stroeder.com>, openldap-technical <openldap-technical@openldap.org>
- Subject: Re: direct MDB access for counting entries from Python
- From: Howard Chu <hyc@symas.com>
- Date: Fri, 17 Jan 2020 02:13:09 +0000
- Dkim-filter: OpenDKIM Filter v2.10.3 zmcc-2-mta-1.zmailcloud.com 48433CF645
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=symas.com; s=37C7994C-28CA-11EA-A30F-68F90BB9D764; t=1579227192; bh=x9fpNT6Ac+8JVSJ0sXwd80e/yRvSM/y6R0RYa2Fk4dU=; h=To:From:Message-ID:Date:MIME-Version; b=GS+lmB4sysHEAZS6Z3TWQ9jRBzy1DiCBxaOy8zT4oJvRYZSvZ3CufOvxNVqdjOkTp ZWsFRRto3CIBvBIWuUzrytutk8XsMZi7RWeyZMUyQ1tUJ8LcK5qPKLOmPe6f+J/6aX GeQlY5zrs4iG+wP4Oe8uRiHtrI9MO9NGXW7wraulNfor/6rK5xKZELG4IR8sbiy/Ch O+kZ1mLf8qfrKqz9HhaMHCmtd+BbhUEeo4RYRYumOeUHrSaCDcnVhEN5Bx60fqLCaa j9g3/a++kn8icV8N3QF4n0d5Rc8OWpBLjqkQ5ktLm7htmj/t4twbC+YEzcyoe881fE tKU6et08Ma5Fg==
- In-reply-to: <8e5d4c2b-ca80-1c34-5087-e106782c199c@stroeder.com>
- References: <df86e66c-c6f5-e16a-2c20-012d652fdff6@stroeder.com> <8e5d4c2b-ca80-1c34-5087-e106782c199c@stroeder.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53
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/