Commerce Server General - Performance question

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > August 2006 > Performance question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Performance question
msnews.microsoft.com

2006-08-12, 7:16 pm

Hello,

I am new to ASP.NET and CS2007, in the document of CS2007 states following:
"For best performance, do not create multiple CatalogContext objects.
Instead, create a single instance and reuse it for the lifetime of the
application."

Could you tell me what is the best practice to create a single instance and
reuse it for the lifetime of the application in ASP.NET 2.0.

Thank you in Advance.

Ming


Vinayak Tadas[MSFT]

2006-08-18, 1:18 am

You can create the object once and store it in the Application state and
access it using a smart property.

--------------------
From: "msnews.microsoft.com" <ethan_lam@hotmail.com>
Subject: Performance question
Date: Sat, 12 Aug 2006 16:39:01 -0300
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
Message-ID: <uTr03bkvGHA.5056@TK2MSFTNGP06.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 198.164.100.100
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP06.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:18151
X-Tomcat-NG: microsoft.public.commerceserver.general

Hello,

I am new to ASP.NET and CS2007, in the document of CS2007 states following:
"For best performance, do not create multiple CatalogContext objects.
Instead, create a single instance and reuse it for the lifetime of the
application."

Could you tell me what is the best practice to create a single instance and
reuse it for the lifetime of the application in ASP.NET 2.0.

Thank you in Advance.

Ming




Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com