为查询设置密码规划器 [英] setting cypher planner for a query

查看:91
本文介绍了为查询设置密码规划器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试了解密码规划器,但我不确定几件事.

I'm trying to understand cypher planner, and I'm not sure of few things.

  1. 我应该更改它,还是让Cypher引擎控制它?
  2. COST和RULE计划者之间有什么区别?

推荐答案

  1. 由于neo4j的每个版本都可能调整计划程序,因此要确定哪种计划程序对特定查询和特定neo4j版本更好的唯一方法是使用PROFILE和性能测试.另外,由于COST计划程序生成的计划取决于您数据的实际特征,因此即使您不升级到较新的neo4j版本,您也可能希望定期测试两个计划程序的查询性能.
  2. 此neo4j博客条目提供了有关计划者的一些详细信息.
  1. Since every version of neo4j may tweak the planners, the only way to know for sure which planner works better for a specific query and a specific neo4j version would be to use PROFILE and performance testing. Also, since the plan generated by the COST planner depends on the actual characteristics of your data, you may also want to periodically test query performance with both planners even when you do not upgrade to a newer neo4j version.
  2. This neo4j blog entry provides some details on the planners.

这篇关于为查询设置密码规划器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆