0

I am developing a chat kind of web app to experiment live group edit. My idea, is something like wave, where you can edit even those you have already send. I was planning to use mongodb or something similar for per chat basis.

My reason for that is: Say there are 100 texts in one instants of chat. And we have 10 such chats. What happens is there will 1000 chats in the table in which its store. So even a person in one chat edit his chat, the db has to look through all 1000. So if I use table per chat, i felt it could improve speed and performance.

But I want to know from people who have done this before.

4

1 回答 1

1

该方法至少有两个明显的问题(不涉及架构设计)

  1. 你不能有无限的命名空间(我不确定你的用例有多大)检查这个:http ://docs.mongodb.org/manual/reference/limits/#namespaces
  2. 写锁是每个数据库的,所以如果你创建多个表/集合,它不会在插入时优化
于 2013-06-26T07:49:20.670 回答