- 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.
- JavaScript實(shí)例自學(xué)手冊(cè)
- 空間機(jī)器人遙操作系統(tǒng)及控制
- 實(shí)時(shí)流計(jì)算系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
- 自動(dòng)檢測(cè)與轉(zhuǎn)換技術(shù)
- 深度學(xué)習(xí)中的圖像分類與對(duì)抗技術(shù)
- 運(yùn)動(dòng)控制系統(tǒng)
- HTML5 Canvas Cookbook
- 網(wǎng)絡(luò)脆弱性掃描產(chǎn)品原理及應(yīng)用
- 經(jīng)典Java EE企業(yè)應(yīng)用實(shí)戰(zhàn)
- Mastering MongoDB 3.x
- Unreal Development Kit Game Design Cookbook
- 網(wǎng)絡(luò)安全概論
- 多媒體技術(shù)應(yīng)用教程
- SQL語(yǔ)言與數(shù)據(jù)庫(kù)操作技術(shù)大全
- Internet of Things with Raspberry Pi 3