开发者

There are a number of state variables in a web page, Is making a database entry for each variable is the only way out?

Many Websites(say facebook) have many features active on their web pages. These features have many state variables associated with them, which are customizable as well. So, is storing the value开发者_JAVA百科 of each variable in database the only way out? Or Is there some other method as well? (Not specific to any particular language, database, framework etc).


Pretty much, yes. If you're website is going to store information about/for its users then this needs to go in a database. It could be written to a file (which is the same concept as a db just not as nice to work with), or kept in memory which means it will all disappear when the process running the website stops.

Is there a particular reason you don't want to use a database, or something you are trying to achieve that you think is incompatible with a database?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜