官术网_书友最值得收藏!

Pathfinding queries

Another type of query that is extremely well-suited for graph databases is a query where you will be looking to find out how different data elements are related to each other. In other words, finding the paths between different nodes on your graph. The problem with such queries in other database management systems is that you will actually have to understand the structure of the potential paths extremely well. You will have to be able to tell the database how to jump from table to table, so to speak. In a graph database, you can still do that, but typically you won't. You just tell the database to apply a graph algorithm to a starting point and an endpoint and be done with it. It's up to the database to figure out if and how these data elements are connected to each other and return the result as a path expression for you to use in your system. The fact that you are able to delegate this to the database is extremely useful, and often leads to unexpected and valuable insights.

Obviously, the query categories mentioned are just that: categories. You would have to apply it to any of the fields of research that we discussed earlier in this chapter to really reap the benefits. We will come back to this in later chapters.

主站蜘蛛池模板: 新密市| 大姚县| 柘荣县| 青铜峡市| 定南县| 明溪县| 东阿县| 永济市| 安多县| 青岛市| 大兴区| 无棣县| 新津县| 前郭尔| 凭祥市| 塔河县| 开封市| 荣昌县| 佛教| 成安县| 清远市| 巩留县| 女性| 准格尔旗| 黔江区| 霍山县| 九江县| 邓州市| 贡嘎县| 建湖县| 莱州市| 浦城县| 吉安市| 当涂县| 桓仁| 宝坻区| 阿瓦提县| 伊宁市| 墨玉县| 遂溪县| 南靖县|