MongoDB 共享 mongo 存储的问题

leeleec · January 23, 2013 · Last by aulara replied at January 28, 2013 · 2704 hits

开发了一个采集程序,前端多个采集点,mongo 库部署在其中一个采集点上,其他采集点会同时写入这个共享的 Mongo 库,不知道 mongo 是否支持这种架构?

应该可以吧,mysql 主要是自增主键的问题,mongo 刚好是和时间戳有关的主键

当然没问题的

mongo 的_id 是包含 4 类信息的,你也可以自己写生成策略来覆盖_id

开多几个链接而已,sql 也行的,完全取决于你的程序架构

You need to Sign in before reply, if you don't have an account, please Sign up first.