[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Slaves taking up 100% cpu
Maybe we are confusing each other with different vocabulary. When I mean
search filter, I am not including the base DN.
We use JLDAP for queries. The search API looks like:
public LDAPSearchQueue search (java.lang.String base,
int scope,
java.lang.String filter,
java.lang.String[] attrs,
boolean typesOnly,
LDAPSearchQueue queue)
throws LDAPException
Asynchronously performs the search specified by the parameters.
Parameters:
base - The base distinguished name to search from.
scope - The scope of the entries to search. The following
are the valid options:
SCOPE_BASE - searches only the base DN
SCOPE_ONE - searches only entries under the base DN
SCOPE_SUB - searches the base DN and all entries
within its subtree
filter - Search filter specifying the search criteria.
attrs - Names of attributes to retrieve.
typesOnly - If true, returns the names but not the values of
the attributes found. If false, returns the
names and values for attributes found.
I specify a value for base, but pass null for filter.
On 1/20/04 5:26p, "Quanah Gibson-Mount" <quanah@stanford.edu> wrote:
>
>
> --On Tuesday, January 20, 2004 4:50 PM -0800 Jeff Leung <jeffleung@mac.com>
> wrote:
>
>> Considering that we never specify a search filter, would just specifying
>> an index with:
>>
>> index objectclass eq
>>
>> be sufficient (after a slapindex of course)?
>
> Jeff,
>
> Are you saying you never retrieve data from your ldap server? Any type of
> data retrieval requires a filter.
>
> Can you provide me any type of data on how you pull data from your server
> (I assume you must be pulling data from it.. Storing data and never
> accessing it makes no sense..)?
>
> --Quanah
>
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/TSS/Computing Systems
> ITSS/TSS/Infrastructure Operations
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
>
--
Jeff
// Diplomacy is the art of saying 'nice doggy'
// until you can find a rock.