推荐工具
› RoboMongo
推荐书目
› 50 Tips and Tricks for MongoDB Developers
Related Blogs
› Snail in a Turtleneck
ohyeahhh
V2EX  ›  MongoDB

MongoDB 的聚合查询是否存在性能问题?

  •  
  •   ohyeahhh · May 21, 2019 · 11485 views
    This topic created in 2695 days ago, the information mentioned may be changed or developed.

    之前用聚合写过一段 js 脚本,放在 Robo3T 客户端上执行,数据量并不大,但是很容易超时;想了解一下代码中适合适合频繁的使用聚合查询

    3 replies  •  2019-05-21 16:09:05 +08:00
    salamanderMH
        1
    salamanderMH  
       May 21, 2019
    估计是没建索引,查询太慢了
    onion83
        2
    onion83  
       May 21, 2019
    mongodb 不适合聚合查询,首先内存使用有限制,其次写起来非常别扭,效率也不高。
    ohyeahhh
        3
    ohyeahhh  
    OP
       May 21, 2019
    @onion83 确实是写起来比较麻烦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1320 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:32 · PVG 00:32 · LAX 09:32 · JFK 12:32
    ♥ Do have faith in what you're doing.