Docs Home / Compass / Create an Aggregation Pipeline

Aggregation Pipeline Builder Settings聚合管道生成器设置

You can adjust your MongoDB Compass Aggregation Pipeline Builder settings to customize your aggregation experience and improve pipeline performance.您可以调整MongoDB Compass聚合管道生成器设置,以自定义聚合体验并提高管道性能。

Settings设置

To view and change your aggregation pipeline settings, click the gear icon at the upper right of the pipeline builder to open the Settings panel.要查看和更改聚合管道设置,请单击管道生成器右上角的齿轮图标以打开“设置”面板。

Option选项Description描述Default Value默认值
Comment Mode注释模式When enabled, adds helper comments to each stage.启用后,向每个阶段添加助手注释。Enabled
Number of Preview Documents预览文档数量Sets number of documents to show in the preview.设置预览中显示的文档数量。10
Limit限制

Specifies the number of documents passed to $group, $bucket, and $bucketAuto pipeline stages. Lower limits improve pipeline run time but might result in missing documents.指定传递给$group$bucket$bucketAuto管道阶段的文档数。较低的限制可以改善管道运行时间,但可能会导致文档丢失。

This setting is only applied to document previews. It is not applied when the pipeline is run.此设置仅适用于文档预览。管道运行时不适用。

100000

Learn More了解更多