If you write code in ASP. NET, you need to use the following to ensure good performance:
◆ Do you want to use cache?
◆ Are you using session status?
◆ Is the application status you are using?
◆ Are you using the thread and synchronization functions?
When I used ASP. net mvc 3 to rewrite the homepage of the blog site, I paid special attention to this cache problem. I will share this blog post.
If OutputCache is used in ASP. net mvc 3, you must add the following code to the Action. Remember!
The latest optimization of the original project is summarized as follows:
1. Use stored procedures (if exec stored procedure parameters are used in the program, the execution does not seem to be much faster ).
It is pre-compiled in the database and
1. database access performance optimization Database Connection and ShutdownTo access database resources for entertainment, you need to create a connection, open a connection, and close a connection. These processes need to exchange information with
HOST: chat rules. Our chat is about to begin. Now I want to announce the chat Rule 1. after the chat starts, you will submit your questions to the host at the chat venue (noahwing). I will be responsible for submitting the questions to the guests.
1. database access performance optimization
Database Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
Do you use response. Redirect?
Search for your code as "response. Redirect" and consider replacing it with server. Transfer. This does not incur a new request cost because it avoids any client redirection.
You cannot always simply replace response.
1. database access performance optimizationDatabase Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
Five petshop business logic layer designThe business logic layer is undoubtedly part of the system architecture that reflects the core value. Its focus is mainly on the formulation of business rules, the implementation of business processes, and
Level 1 Cache
Nhibernate intelligently caches data for better performance. Nhibernate has different caching mechanisms. The most important thing is the level-1 cache. Each session object maintains a level-1 cache. When a session object is created,
I recently conducted a performance test on IIS. I have a deep understanding and published the data for your reference.
The server bandwidth is 1950 mbps for Dell 2003, windows, and Shanghai Telecom IDCs.
Test method:
1. Develop a flash.
ArticleDirectory
Iview Interface
Iviewengine Interface
Viewengineresult
Viewenginecollection
1. Implement the iview Interface
2. Implement the iviewengine Interface
3. Use stringtemplateviewengine
I. Summary
This
For a website that requires long-term maintenance, it is meaningful to make the website run stably for a long time.Some problems that are not exposed in the development phase may occur in the O & M phase, which is also normal.Sometimes, we want to
ArticleDirectory
Static Application variables
ApplicationProgramStatus allows you to save global objects accessed by all customers. The application status is based onSystem. Web. httpapplicationstateClass in the web page through the
Using system; using system. data; using system. configuration; using system. collections; using system. web; using system. web. security; using system. web. ui; using system. web. UI. webcontrols; using system. web. UI. webcontrols. webparts; using
1. database access performance optimization Database Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
The business logic layer is undoubtedly part of the system architecture that reflects the core value. Its focus is mainly on the formulation of business rules, the implementation of business processes, and other system designs related to business
1. database access performance optimization Database Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
1. database access performance optimization Database Connection and Shutdown
To access database resources, you need to create a connection, open a connection, and close the connection. These processes need to exchange information with the database
Address: http://www.cnblogs.com/wayfarer/archive/2006/11/05/550723.html
Anatomy petshop Series 5
Five petshop business logic layer designThe business logic layer is undoubtedly part of the system architecture that reflects the core value. Its focus
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.