Shared Folders - Performance

J

Jack

I have an application that will scan the folder list (looks 4 levels deep)
for either a folder name or a DefaultMessageClass. This performs very well
when run against a local pst file or even an Exchange server that is local.
Where it encounters performance issues is the following scenario:
Exchange server with attached shared mailboxes and the Exchange server is
not local, it is hosted across the Internet. Since the shared folders are
not cached when the program scans the folders it encounters delays in
getting responses from the server. Basically how I am scanning is via
nested for loops where the outmost is for i=1 to
ObjOUtlook.session.folders.count and each inner loop uses a mapifolder
object to get the list of folders to scan

The question is there a more efficient way to look for folders that have a
certain DefaultMessageClass or is there a more efficient way to deal with
shared folders.

Thanks,

Jack
 
P

Peter Huang [MSFT]

Hi

Outlook is designed for desktop application and that is why we introduced
Cached mode.
If you want to query Online Folder I think you may try use WebDav to talk
with Exchange Directly.
310286 How to list folders and items in a mailbox on an Exchange 2000
Server computer by using WebDAV in Visual C#
http://support.microsoft.com/default.aspx?scid=kb;EN-US;310286

For exchange WebDav issue, I think it would better post in the exchange dev
newsgroup.
microsoft.public.exchange2000.development

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jack

Unfortunately I need a solution that will work for a single user pst as well
as an Exchange user.

Is there a way to have the shared folders cached?

Jack
 
P

Peter Huang [MSFT]

Hi

Based on my discussing with the Exchange Engineer, I assume you mean the
Public Folder as Shared Folder.
The Public Folder can not be cached.

So I think you have to develop two interfaces.
if PublicFolder
then
WebDav
else
outlook OM


If you still have any concern, you can send your feedback to the MSDN
Product Feedback website.
Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
K

Ken Slovak - [MVP - Outlook]

If the shared folder is in a delegate mailbox try opening that mailbox as
part of your Outlook profile instead of using File, Open or just
GetSharedDefaultFolder. In that case you can iterate the loaded stores if
you are using an API that supports that and get to the folders that way, as
member folders of the store. You get far better performance that way.
 

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