0

The basic requirement of the site is to provide a plateform for blogging and single interface for managing various social network, emails, blog etc. For blogging I am using .netblogengine. And facebook and gmail and blogger are currently being managed by signing in via their api. I am using mysql and blog content is being saved in mysql column.

My first question is.. Suppose instead of saving blog content in mysql table column I just save the content in a txt file and save the name of the file in the column.. Doing so will reduce the size of table but will it also affect the performance?? I know I will not be able to search within the content but mysql size grows up quickly (50 mb with 8 users). The minimum number of users are atleast 30.

My second question.. I am thinking of asking all the acount (facebook, gmail etc) username and password and store them in the db. When even a user sign in all related account will be signed in using the saved data so that separate logging is not required. How ever username/password hacks are common headlines now days. I want to know how secure are the shared server environment in this regard? Will I be required to take some extra effort to secure these data or I can be sure that as long as my mysql logging details are safe all data are safe.

4

1 回答 1

0

简短的回答是将诸如博客文章之类的文本内容保存在数据库中是最好的选择。如果在单独的文件中有任何附件,则保存任何附件是一个好主意。

无论哪种方式,磁盘上的数据大小都将相似,因此没有任何节省。而且由于您需要为文本文件开发独特的命名约定,因此您实际上是在自己编写部分数据库;还不如把它留给专家:)

一般来说,达到数百兆字节的表大小不会对性能造成很大影响。假设您已正确设置索引,数据库引擎将能够直接查找所需的数据。

关于帐户凭据的简短回答,绝对不要在数据库中以未加密的形式保存用户名或密码。对于安全专家来说,如何正确加密这些以确保安全将是一个问题。https://security.stackexchange.com/

于 2013-02-19T06:38:40.210 回答