gpt4 book ai didi

MongoDB 日志 : extent 0:550000 and can't find plugin [desc]

转载 作者:可可西里 更新时间:2023-11-01 10:33:31 25 4
gpt4 key购买 nike

我将 Meteor 与在 Windows 上运行的独立 MongoDB 结合使用。我将 MongoDB 作为一项服务运行。

我的 MongoDB 日志充满了以下内容:

Mon Mar 04 14:15:36 [conn19] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:15:38 [conn17] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:15:40 [conn16] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:15:43 [conn18] warning: can't find plugin [desc]
Mon Mar 04 14:15:43 [conn19] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:15:49 [conn18] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:16:14 [conn16] warning: can't find plugin [desc]
Mon Mar 04 14:16:20 [conn17] info DFM::findAll(): extent 0:55000 was empty, skipping ahead. ns:webfm.graphdata
Mon Mar 04 14:16:24 [conn16] warning: can't find plugin [desc]

Mon Mar 04 14:16:32 [conn20] info DFM::findAll(): extent 0:60000 was empty, skipping ahead. ns:webfm.history
Mon Mar 04 14:16:34 [conn16] warning: can't find plugin [desc]

据我所知,“findAll(): extent 0:55000...”似乎与我的应用程序频繁删除数据有关。对吗?

找不到插件 [desc] 怎么办?那个插件是什么?我该如何解决?

最佳答案

From what I can find the "findAll(): extent 0:55000..." seemed to have to do with my application's removing the data frequently. Is that correct?

根据 Nick 的回答,消息 extent 0:55000 was empty, skipping ahead 与您的频繁删除有关。这是在跳过空数据范围时发出的警告,0:55000 是范围位置。当您向该集合中添加更多数据时,该空间通常会被重复使用。

如果您经常添加和删除此集合并且担心磁盘空间不足,您还可以考虑:

  • 启用usePowerof2Sizes此集合的标志(MongoDB 2.2 或更新版本)以更有效地重用已删除的空间
  • 将临时集合保存在单独的数据库中,并在完成后删除数据库(而不是运行频繁的压缩或修复)

How about the can't find plugin [desc]? What's that plugin? How can I fix it?

这通常意味着您有一个无效的索引定义,并且找不到索引“插件”来处理该问题。在此示例中,我希望您有一个索引字段声明为 desc 而不是 -1

您可以使用 db.collection.getIndexes() 检查索引定义:

use webfm
db.graphdata.getIndexes()

关于MongoDB 日志 : extent 0:550000 and can't find plugin [desc],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15209676/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com