g8287694
V2EX  ›  问与答

关于 mangodb 索引的奇怪问题 实际写入的数据索引没有完成所以查询不到?

  •  
  •   g8287694 · Aug 24, 2018 · 931 views
    This topic created in 2887 days ago, the information mentioned may be changed or developed.

    比如脚本在不停的写数据,tail -f 日志可以看到已经写入到 10000 条了,在 mongodb 里面也可以 find 这条数据,但是直接 count 却只有 9800 条数据,并且一直落后 200 条,与这条数据相关的大概 9 条索引(不要问我为什么这么多索引,我也不想的,我也决定不了) 索引的属性 background 为 true 是否可以认为当用索引的时候,如果这条数据索引没有建立完毕就查询不到?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:16 · PVG 06:16 · LAX 15:16 · JFK 18:16
    ♥ Do have faith in what you're doing.