Orchard性能調優

原文地址:http://docs.orchardproject.net/Documentation/Optimizing-Performance-of-Orchard-with-Shared-Hosting


簡要翻譯:

 

信任級別

Orchard原生態設置是完全信任模式的。最小信任不再被支持。

<trust level="Full" originUrl="" />

Debug/Release模式

生產機需要運行在debug模式下. 確保程序已release模式編譯發佈,Orchard.Web模塊的web.config文件也要指明release模式

<compilation debug="false" targetFramework="4.0"
  batch="true" numRecompilesBeforeAppRestart="250">

共享服務vs專用服務vs雲服務

(略)

用 SQL Server替換SQL Server Compact

文件系統

保證文件系統的高速訪問也能提升Orchard性能

增加內存

應用程序池的回收設置(定時回收)

多租戶(Multi-Tenancy)模塊的使用

Orchard has an optional module called Multi Tenancy that enables more than one site to exist on the same Orchard instance. The data for the sites is separated, and for all practical purposes they are distinct sites. There are a few limitations on what each tenant can do, such as installing new modules and themes.

The advantage of a multi-tenant installation over multiple instances of Orchard is that there is only one app domain, which hosting companies favor because it improves site density considerably. It also has advantages for each of the multi-tenant sites, because a hit on any of the tenants keeps the app domain alive. Therefore, even sites that receive very few hits will remain responsive if they share the app domain with enough other sites.

This results in the seemingly paradoxical notion that more sites on a single app domain might perform better in some cases than a single site per app domain. In shared hosting scenarios in particular, this configuration is optimal if it is an option.



儘量不要安裝不需要用到的模塊

文件夾的深度不要太深,儘量扁平化,用點號來做層次表示(類似java的包管理)







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章