From:             randyzhu at yeah dot net
Operating system: RedHat 9.0
PHP version:      4.3.8
PHP Bug Type:     LDAP related
Bug description:  How to search more effectively

Description:
------------
it will take  about 100 secs to fetch about 10,000 entries.
how to improve the performance? 



Reproduce code:
---------------
$dn = "o=My Company, c=US";
$filter="(cn=*)";
$justthese = array("ou", "cn", "givenname", "mail");

$sr=ldap_search($ds, $dn, $filter, $justthese);



-- 
Edit bug report at http://bugs.php.net/?id=31307&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31307&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31307&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31307&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31307&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31307&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31307&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31307&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31307&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31307&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31307&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31307&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31307&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31307&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31307&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31307&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31307&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31307&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31307&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31307&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31307&r=mysqlcfg

Reply via email to