douwei7471 2014-10-29 16:58
浏览 14
已采纳

为大型网站设计数据库的方法? [关闭]

While making a website like facebook

we can follow two approach of database design so please suggest better Concern is Data Secuirty and Backup Management

Approach 1 Design a table that will hold all the data of the personal and some other table that will hold other keys like image etc the problem will come when there are 10 lakhs of entries in the table is it possible thereafter to take backup some hosting company wont allow to do so.

Approach 2 While the user signup assign the separate table to the users in that way user will reach to ten thousand rows in 5 years or so just a assumption

but that means million tables in the database if million user signup and that again a problem i believe

Please suggest better way if anyone can

  • 写回答

1条回答 默认 最新

  • dongxing1853 2014-10-29 17:04
    关注

    Sites the size of Facebook have unique challenges specific to their setups. Facebook, Twitter, Google, etc. all maintain their own forks of database engines and often even write their own, and they'll be using different databases for different purposes. Very little of what they do is going to be applicable to anything you build.

    Approach #1 is by far the better. With proper indexes and a good database design, MySQL can support billions of rows. It cannot as easily support millions of tables.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)