ColdFusion客户端存储 [英] ColdFusion Client Storage
问题描述
在高负载应用程序中,最好将客户端存储放在注册表或数据库中吗?我担心我的高负载会导致更多的数据库连接客户端存储信息,并减慢一切下降。 FYI:我们在Linux上使用ColdFusion
In a high load application, is it better to put the client storage in the Registry or in a database? I am concerned that my high load will cause more database connections for client storage information and slow everything down. FYI: We use ColdFusion on Linux
想法?
推荐答案
如果将客户端变量存储在注册表(IMHO)中,则在高负载时会产生更多性能影响。当Coldfusion将客户机变量存储在DataBase中时,它们在页面请求的开头读取,然后在页面被编译之后,它们被重新存储在数据库中。如果您在管理员中启用了连接池,这可以是存储变量的非常有效的方法。
If you store client variables in the registry (IMHO), you will have more of a performance impact with a high load. When Coldfusion stores the client variables in the DataBase, they are read at the beginning of the page request, and then after the page is complied, they are re-stored in the database. If you have connection pooling turned on in the administrator, this can be a very effective way to store the variables.
请参阅: http://www.coldfusionmuse.com/index.cfm/2009/7/8/ client.variables.reserved.word
这篇关于ColdFusion客户端存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!