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

Designing for query-ability

As with any database management system, but perhaps even more so for a graph database management system such as Neo4j, your queries will drive your model. What we mean with this is that, exactly like it was with any type of database that you may have used in the past or would still be using today, you will need to make specific design decisions based on specific trade-offs. Therefore, it follows that there is no one perfect way to model in a graph database such as Neo4j. It will all depend on the questions that you want to ask of the data and this will drive your design and model.

Therefore, my number one rule, and undoubtedly the most important best practice for graph database modeling, is to start with your user stories. What does the user of the system that you are designing want to know from the data? An example of such a story could be something like this:

"As an employee, I want to know who in the company I work for has similar skills to me so that we can exchange knowledge"

This excerpt tells a little bit about the entities that I need to include in the model and the connections that should exist between these entities. Different domain descriptions would probably add similar or different entities and similar or different connections and will then gradually complete your model.

主站蜘蛛池模板: 钟山县| 盈江县| 博爱县| 威信县| 胶州市| 铜陵市| 中山市| 西和县| 湛江市| 洱源县| 高雄市| 大姚县| 佛学| 米脂县| 区。| 开远市| 桂东县| 师宗县| 邵武市| 平阴县| 桃园县| 本溪市| 北碚区| 信丰县| 呼伦贝尔市| 托里县| 大英县| 门头沟区| 军事| 乌兰察布市| 沿河| 柳州市| 库车县| 永安市| 鲁山县| 扶沟县| 兖州市| 称多县| 华宁县| 漳平市| 泾阳县|