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.
ก่อน neo4j แนะนำศูนย์เป็นแบบสอบถามที่ต้องการใช้ neo4j ในโครงการจริง
a ยากเมื่อเทียบกับแบบดั้งเดิมที่เป็นฐานข้อมูลเชิงสัมพันธ์ . โดย
สอบถามฐานข้อมูลเป็นฝันร้ายและรันแบบสอบถามที่ซับซ้อนที่ต้องการ
ผู้ใช้เขียนวัตถุจึงแสดงกราฟหรือ . ประมาณ
พูดหรือคือการผ่าตัดที่ระบุวิธีการท่องกราฟและจะทำอย่างไรกับ
โหนดและความสัมพันธ์ที่พบในระหว่างการเข้าชม though ที่ very เรียกว่า , ที่เก็บกวาด works กับ way very ชื่อ ( through callbacks ่ so its readability is เชียงราย (
any change to ที่จังหวัดอุดรธานี means modifying the code ( เข้ามา it .
cypher , อีกที , สิ่งมีชีวิต syntax declarative , ถาม readable ยาง ,และ
ตั้งมากมายของรูปแบบกราฟที่ได้รับการยอมรับในกราฟ ดังนั้น กับ ไซเฟอร์
คุณสามารถเขียน ( และอ่าน ) แบบสอบถามมากได้ง่ายขึ้นและมีประสิทธิผลจาก
เริ่มต้น เศร้า will guide คู่ learning language this เริ่มต้น ground เก็บกวาดก็ , ( each topic will : explained ฉัน real-world แบบนี้
การแปล กรุณารอสักครู่..
