Database Reference
In-Depth Information
Chapter 4. Querying and Structuring Data
Reading and writing are two important aspects of any data store / database. Efficient writ-
ing of records to data structures is as important as reading records from these data struc-
tures. Reading and writing are closely linked to each other, where over engineering or focus
on one process may lead to performance degradation of the other. It is important to keep a
balance between performances gained by one process over the other and these are often
categorized as architectural trade-offs.
Reads (using patterns) uncover the hidden patterns within data but writes in comparison to
reads have a different set of challenges such as handling transactions, aligning to the prin-
ciples of ACID—Atomicity, Consistency of records, Isolation, and Durability of data and
transactions.
Essentially, in graph databases, reading and writing together define the shape of data ,
which is the important aspect of graph data structures.
In the last chapter, we covered the read aspects of Neo4j, and in this chapter we will talk
and discuss about the write aspects of Neo4j.
This chapter will cover the following topics:
• Cypher write queries
• Writing data in legacy indexes and schema
• Unicity and other schema constraints
• Cypher optimizations
Search WWH ::




Custom Search