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

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

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

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

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