V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
sheaven
V2EX  ›  MongoDB

关于 2dsphere 索引的疑问

  •  
  •   sheaven · 2014-05-21 22:39:06 +08:00 · 4894 次点击
    这是一个创建于 3621 天前的主题,其中的信息可能已经有所发展或是发生改变。
    为什么创建了2dsphere索引后查询就没有索引了呢,cursor是莫名其妙的 S2Cursor这是什么意思
    删除了2dsphere索引后速度就暴快索引也用到了
    1 条回复    2014-05-22 22:13:21 +08:00
    sheaven
        1
    sheaven  
    OP
       2014-05-22 22:13:21 +08:00
    今天把mongodb升级到了2.6.1没想到竟然解决了
    竟然2dsphere索引用不上是2.4.1的bug
    升级后啥也没干立刻建索引测试
    终于用上索引了
    "cursor" : "BtreeCursor _ugps_"了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2536 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:35 · PVG 23:35 · LAX 08:35 · JFK 11:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.