随笔分类 -  MongoDB

MongoDB Long/Int(长整型)的自增长主键 解决方案
摘要:今朝有幸尝芒果,发现自增长ID类型有多种,唯独没有Long/Int。一思路:1. 自建一个Collection(表,假设名为:IdentityEntity,其中字段:_id, Key, Value,其中_id你懂的,Key:Collection名,需要用Long/Int自增长主键的Collectio... 阅读全文
posted @ 2015-02-11 12:04 Jagre 阅读(7260) 评论(0) 推荐(0)