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

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.

主站蜘蛛池模板: 平武县| 泾源县| 漯河市| 清水河县| 息烽县| 济阳县| 公主岭市| 凤庆县| 卓资县| 大埔县| 龙陵县| 丰镇市| 满城县| 奉新县| 伽师县| 高邑县| 公主岭市| 青州市| 文化| 新昌县| 昭平县| 同仁县| 两当县| 大同县| 彭阳县| 湖州市| 龙游县| 苗栗县| 白玉县| 阳谷县| 汝南县| 大田县| 凤冈县| 石首市| 乌拉特中旗| 郁南县| 建始县| 嫩江县| 托克逊县| 洛阳市| 邵武市|