- Learning Cypher
- Onofrio Panzarino
- 283字
- 2021-07-16 11:50:26
Preface
Among the NoSQL databases, Neo4j is generating a lot of interest due to the following set of features: performance and scalability, robustness, its very natural and expressive graph model, and ACID transactions with rollbacks.
Neo4j is a graph database. Its model is simple and based on nodes and relationships. The model is described as follows:
- Each node can have a number of relationships with other nodes
- Each relationship goes from one node either to another node or the same node; therefore, it has a direction and involves either only two nodes or only one
- Both nodes and relationships can have properties, and each property has a name and a value
Before Neo4j introduced Cypher as a preferred query, utilizing Neo4j in a real-world project was difficult compared to a traditional relational database. In particular, querying the database was a nightmare, and executing a complex query required the user to write an object, thereby performing a graph traversal. Roughly speaking, a traversal is an operation that specifies how to traverse a graph and what to do with the nodes and relationships found during the visit. Though it is very powerful, it works in a very procedural way (through callbacks), so its readability is poor and any change to the query means modifying the code and building it.
Cypher, instead, provides a declarative syntax, which is readable and powerful, and a rich set of graph patterns that can be recognized in the graph. Thus, with Cypher, you can write (and read) queries much more easily and be productive from the beginning. This book will guide you through learning this language from the ground up, and each topic will be explained with a real-world example.
- 零起步輕松學單片機技術(第2版)
- 人工智能超越人類
- IoT Penetration Testing Cookbook
- STM32G4入門與電機控制實戰:基于X-CUBE-MCSDK的無刷直流電機與永磁同步電機控制實現
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- 網絡綜合布線設計與施工技術
- Windows游戲程序設計基礎
- Android游戲開發案例與關鍵技術
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- 人工智能:語言智能處理
- 電氣控制及Micro800 PLC程序設計
- Kubernetes on AWS
- SolarWinds Server & Application Monitor:Deployment and Administration
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- 數字中國:大數據與政府管理決策