ColdFusion Client Storage

旧巷老猫 提交于 2019-12-24 15:27:02

问题


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

Thoughts?


回答1:


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.

See: http://www.coldfusionmuse.com/index.cfm/2009/7/8/client.variables.reserved.word




回答2:


From http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001154.htm

"Generally, it is most efficient to store client variables in a database. Although the Registry option is the default, the Registry has significant limitations for client data storage. The Registry cannot be used in clustered systems and its use for client variables on UNIX is not supported in ColdFusion MX."




回答3:


database for sure. IMO registry is only viable when it is an intranet, internal system with < 20 users.




回答4:


If you are using client storage on linux, then the registry is out of the question since its use on *nix is not supported in ColdFusion.

Your only other options are a database or cookies.

Cookies will have limitations depending on the browser the user is using, if the user has cookies enabled or disabled, as well as security implications depending on what you are using the client storage for.

The database will most likely be the most efficient solution for client storage and scale out to clusters if high load is your concern.




回答5:


only use client cookie as storage. in my experience registry is out of the question should not even be an option imo. database storage eventually gets so large that you get performance issues.

cookie based is the most scaleable especially for large websites.



来源:https://stackoverflow.com/questions/1228506/coldfusion-client-storage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!