当前位置:网站首页>Neo4j learning notes
Neo4j learning notes
2022-07-04 01:40:00 【Three watch ghost】
Neo4j
Ne04j
brief introduction
- A kind of Native graph database, namely Native graph database system . Use the customized data structure to store the map on the local hard disk , Instead of being stored in database relational tables
- Open source Java Realization
Neo4j Storage
- The vertices :node
- edge :relationship
- Vertices and edges can have multiple key-value Yes : Become property
Neo4j Use
- Cypher:Declarative query language( Declarative query language )
- Traversal:Embedded Java lib
Cypher
Node
(name:type, {
property_key:value, property_key:value...})
Ahead name:type in ,
name It means that we should Node The name of
type That is Node The type of
In the following brace , That is, multiple key-value Composed of property
Example :
// Only name
(Jerry)
// Yes name, And there are type
(Jerry:Dog)
// Yes name, And Tang Dynasty type, also property
(Jerry:Dog, {
name:"Jerry", sex:"male", age:"1"})
( emma :Vehicle,{
name:" emma "})
Relationship
-[name:type, {
property_key:value, property_key:value...}]->
And Node The main difference is that the outermost parentheses are not parentheses , It's brackets , There are combined characters like arrows outside the brackets .
-[:Cycling]->
-[:Cycling,{
place:home, time: morning}]->
File store
Store all... Separately Node、Relationship and Property The file of
- Node store、Ralationship store、Property store file
- unique id: Every node,relationship,property All have their own unique id
Ralationship Double linked list
- The same node Of relationship Form a two-way linked list
- The link pointer is relationship id
- Corresponding node Record the first in the linked list relation id
Property One way linked list
- The same node/relationship Of property Form a one-way list
- The link pointer is next property id
- The first in the linked list property id There is a corresponding node/relationship in
Memory buffer
OS Your file system has a buffer pool , As shown in the table on the page
Node/Rel cache
- Neo4j Yes node,relationship and property buffer
- The internal data structure is based on node and relationship For the main unit , and Property It is added to node and relationship On
Writing documents
- One transaction( It's business , An operation request to the database ) Write and save first , until transaction.finish() when , To really try to modify the data
- Adopted transaction Log
HA, namely High Availability( High availability )
- Use multiple copies
- Master copy transaction log Send to the slave copy
- From copy replay log So as to perform the same operation
边栏推荐
- SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
- Difference between value and placeholder
- IPv6 experiment
- Skku| autonomous handover decision of UAV Based on deep reinforcement learning
- MySQL statement learning record
- Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
- Huawei cloud micro certification Huawei cloud computing service practice has been stable
- MySQL -- Introduction and use of single line functions
- ThinkPHP uses redis to update database tables
- SQL statement
猜你喜欢
Introduction to unity shader essentials reading notes Chapter III unity shader Foundation
Pratique technique | analyse et solution des défaillances en ligne (Partie 1)
AI 助力艺术设计抄袭检索新突破!刘芳教授团队论文被多媒体顶级会议ACM MM录用
Maximum likelihood method, likelihood function and log likelihood function
【.NET+MQTT】. Net6 environment to achieve mqtt communication, as well as bilateral message subscription and publishing code demonstration of server and client
Hbuilder link Xiaoyao simulator
长文综述:大脑中的熵、自由能、对称性和动力学
[turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration
Feign implements dynamic URL
Huawei BFD and NQA
随机推荐
What are the advantages and disadvantages of data center agents?
Fundamentals of machine learning: feature selection with lasso
In the process of seeking human intelligent AI, meta bet on self supervised learning
Chinese Mitten Crab - current market situation and future development trend
Force deduction solution summary 1189- maximum number of "balloons"
I don't care about you. OKR or KPI, PPT is easy for you
Introduction to superresolution
Openbionics robot project introduction | bciduino community finishing
Remember a lazy query error
Why is the operation unsuccessful (unresolved) uncaught syntaxerror: invalid or unexpected token (resolved)
Use classname to modify style properties
Summary of common tools and technical points of PMP examination
ThinkPHP uses redis to update database tables
Setting function of Jerry's watch management device [chapter]
CLP information - how does the digital transformation of credit business change from star to finger?
Technical practice online fault analysis and solutions (Part 1)
Force buckle day32
Typescript basic knowledge sorting
Conditional statements of shell programming
How to view the computing power of GPU?