Re: DirectoryEntry Pooling...

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hemant,

You can read about connection pooling here.

http://blogs.dirteam.com/blogs/tomek/. The article is titled:
System.DirectoryServices and connection pooling

Note that if this is going to be a heavily utilized website that S.DS
doesn't scale well. You should probably look to move to S.DS.Protocols. It
is a bit more work but you can control the connection pooling where as S.DS
does the pooling under the hood.

-Jon

"Hemant" <Hemant.U.Mane@xxxxxxxxx> wrote in message
news:f56b7457-a4e2-4735-a5d7-a4fa451beee5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
In one of my application i am using System.DirectoryServices to get
some data from Sun One Directories.
I am using Asp.net & C# 2.0

I am worried about the performance. I have following doubts.

1. Which will be better
a. adding DirectoryEntry Object to session.
b. Createing new object everytime.

2. Which kind of pooling do I need to use (connection pooling / object
pooling)

Is there any way to pool the directoryentry object.

Thanks in advance,

Hemant


.