From: Yann R. <at...@at...> - 2000-06-20 05:24:02
|
Hi, Ok, you all know me by now, that loveable person who is running into all sorts of problems :) Now I'm asking more for advice. How would you suggest I cache a Net::LDAP connection in a mod_perl system? Do you think its a good idea? My test script which authenticates and uses searches is running at a cool 1.8 hits a second, whereas the DBI connection to the PostgreSQL server is cooking up 68 (saturating the 10Mb link between the two machines - during the LDAP test 87% idle, during the DBI test 95% idle). I will need to spawn an additional connection every time for authentication of users (which gets disconnected immediatley afterwards), but that is more of a one time affair as a session powered by the database is created. Lookups in LDAP are still done for group information, odd attributes, etc, where a cache seems useful. Yann -- -------------------------------------------------------------------- Yann Ramin at...@at... Atrus Trivalie Productions www.redshift.com/~yramin Monterey High IT www.montereyhigh.com ICQ 46805627 AIM oddatrus Marina, CA IRM Developer Network Toaster Developer SNTS Developer * Developer "All cats die. Socrates is dead. Therefore Socrates is a cat." - The Logician -------------------------------------------------------------------- |