DirectoryEntry Pooling...

H

Hemant

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top