Learning Cypher

Write powerful and efficient queries for Neo4j with Cypher, its official query language
Preview in Mapt

Learning Cypher

Onofrio Panzarino

1 customer reviews
Write powerful and efficient queries for Neo4j with Cypher, its official query language
Mapt Subscription
FREE
$29.99/m after trial
eBook
$11.90
RRP $16.99
Save 29%
Print + eBook
$27.99
RRP $27.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$11.90
$27.99
$29.99p/m after trial
RRP $16.99
RRP $27.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning Cypher Book Cover
Learning Cypher
$ 16.99
$ 11.90
Learning Neo4j Graphs and Cypher [Video] Book Cover
Learning Neo4j Graphs and Cypher [Video]
$ 124.99
$ 106.25
Buy 2 for $29.40
Save $112.58
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783287758
Paperback162 pages

Book Description

Neo4j is generating much interest among NoSQL database users for its features, performance and scalability, and robustness. The software also provides users with a very natural and expressive graph model and ACID transactions with rollbacks. However, utilizing Neo4j in a real-world project can be difficult compared to a traditional relational database. Cypher fills this gap with SQL, providing a declarative syntax and the expressiveness of pattern matching. This relatively simple but powerful language allows you to focus on your domain instead of getting lost in database access. As you will learn in this book, very complicated database queries can easily be expressed through Cypher.

This book is a practical, hands-on guide to designing, implementing, and querying a Neo4j database quickly and painlessly. Through a number of practical examples, this book uncovers all the behaviors that will help you to take advantage of Neo4j effectively, with tips and tricks to help you along the way. The book starts with the basic clauses and patterns to perform read-only queries with Cypher. You will then learn about clauses and tips that can be used with patterns to elaborate results coming from pattern matching. Next, you will master the clauses required to modify a graph. Once you have got these basics right with the help of practical examples, you will then learn about tools and practices to improve the performance of queries and how to migrate a database to Neo4j from the ground up. To finish off, the book covers Cypher operators and functions in detail.

Table of Contents

Chapter 1: Querying Neo4j Effectively with Pattern Matching
Setting up a new Neo4j database
HR management tool – an example
Summary
Chapter 2: Filter, Aggregate, and Combine Results
Filtering
Sorting
Aggregating results
The UNION statement
Summary
Chapter 3: Manipulating the Database
Using Neo4j Browser
Creating nodes and relationships
Modifying existing data
Deleting data
Loops
Summary
Chapter 4: Improving Performance
Performance issues
Best practices and recommendations
Profiling queries
Indexes and constraints
Summary
Chapter 5: Migrating from SQL
Our example
Migrating the schema
Migrating the data
Migrating queries
Summary

What You Will Learn

  • Design and create flexible and fast graph databases using the Cypher declarative syntax
  • Write powerful, readable, and reusable queries with pattern matching and parameters
  • Develop fast applications using best practices to improve the performance of your Cypher queries
  • Transition smoothly from SQL to Neo4j
  • Migrate relational databases to the graph model, getting rid of O/R mismatch
  • Avoid the common mistakes and pitfalls in programming with Neo4j

Authors

Table of Contents

Chapter 1: Querying Neo4j Effectively with Pattern Matching
Setting up a new Neo4j database
HR management tool – an example
Summary
Chapter 2: Filter, Aggregate, and Combine Results
Filtering
Sorting
Aggregating results
The UNION statement
Summary
Chapter 3: Manipulating the Database
Using Neo4j Browser
Creating nodes and relationships
Modifying existing data
Deleting data
Loops
Summary
Chapter 4: Improving Performance
Performance issues
Best practices and recommendations
Profiling queries
Indexes and constraints
Summary
Chapter 5: Migrating from SQL
Our example
Migrating the schema
Migrating the data
Migrating queries
Summary

Book Details

ISBN 139781783287758
Paperback162 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Data Visualization with D3.js Cookbook Book Cover
Data Visualization with D3.js Cookbook
$ 26.99
$ 18.90
Practical Data Analysis Book Cover
Practical Data Analysis
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Learning Neo4j Book Cover
Learning Neo4j
$ 29.99
$ 3.00
Mastering D3.js Book Cover
Mastering D3.js
$ 32.99
$ 23.10
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00