

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Gremlin `explain` 分析 Neptune 查询执行
<a name="gremlin-explain"></a>

Amazon Neptune 添加了名为 *explain* 的 Gremlin 特征。此特征是一种自助式工具，用于了解 Neptune 引擎所采用的执行方法。您可以通过将 `explain` 参数添加到提交 Gremlin 查询的 HTTP 调用来调用它。

`explain` 功能提供了有关查询执行计划的逻辑结构的信息。您可以使用此信息来识别潜在的评估和执行瓶颈并调整查询，如[调整 Gremlin 查询](gremlin-traversal-tuning.md)中所述。您还可以使用[查询提示](gremlin-query-hints.md)来改进查询执行计划。

**Topics**
+ [了解 Gremlin 查询在 Neptune 中的工作方式](gremlin-explain-background.md)
+ [在 Neptune 中使用 Gremlin `explain` API](gremlin-explain-api.md)
+ [Neptune 中的 Gremlin `profile` API](gremlin-profile-api.md)
+ [使用 `explain` 和 `profile` 调整 Gremlin 查询](gremlin-traversal-tuning.md)
+ [Amazon Neptune 中的原生 Gremlin 步骤支持](gremlin-step-support.md)