The following are some tweaks that should be made to web.config before you go live on your production server,if you are using the ASP.NET 2.0/3.5 Member ship provider.
1.Add the applicationname attribute in Profile provider.If you do not add a specific name here, Profile provider will use a GUID. So, on your local machine you will have one GUID and on the production server you will have another GUID.If you copy your local database to the production server, you won’t be able to reuse the records available in your local database, and ASP.NET will create a new application on the production server (see Example).
Add a fixed application name in the Profile provider configuration section so that when you move a prepopulated database from the development server to production, the application ID does not change.<profile enabled="true">
2. Turn off auto profile save.Profile provider will automatically save the profile whenever a page request completes,even if you have already saved the profile or you don’t want it to save anything.So, this might result in an unnecessary UPDATE on your database which is a significant performance penalty. So, turn off automatic save and do it explicitly from your code using Profile.Save( );(see Example ).
Turning off automatic save in Profile provider configuration
<profile enabled="true" automaticSaveEnabled="false" >
<roleManager enabled="true" cacheRolesInCookie="true" >
These small changes in web.config will protect you from significant scalability problems when site traffic increases, such as 50 to 100 requests per second per server.These changes will save 2 to 3 database calls per request, and you will save about 100 to 300 database calls per second on such a load, which puts much less stress on your database server and lets you grow more on the same hardware.
ASP.NET Related Interview Questions
|VB.NET Interview Questions||C#. NET Interview Questions|
|ASP.NET Interview Questions||ADO.Net Interview Questions|
|Windows Presentation Foundation(WPF) Interview Questions||Windows CE .NET Interview Questions|
|Dot Net Framework Interview Questions||Asp Dot Net Mvc 4 Interview Questions|
|Asp Dot Net Mvc Interview Questions|
Introducing Web Portals And Dropthings.com
Architecting The Web Portal And Widgets
Building The Web Layer Using Asp.net Ajax
Building The Data And Business Layers Using .net 3.5
Building Client-side Widgets
Optimizing Asp.net Ajax
Creating Asynchronous, Transactional, Cache-friendly Web Services
Improving Server-side Performance And Scalability
Improving Client-side Performance
Solving Common Deployment, Hosting, And Production Challenges
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.