当前位置:网站首页>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
边栏推荐
- Huawei BFD and NQA
- String hash, find the string hash value after deleting any character, double hash
- Skku| autonomous handover decision of UAV Based on deep reinforcement learning
- When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
- Do you know the eight signs of a team becoming agile?
- The latest analysis of hoisting machinery command in 2022 and free examination questions of hoisting machinery command
- Introduction to Tianchi news recommendation: 4 Characteristic Engineering
- Jerry's synchronous weather information to equipment [chapter]
- Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
- Applet graduation project based on wechat selection voting applet graduation project opening report function reference
猜你喜欢

LeetCode226. Flip binary tree

In the process of seeking human intelligent AI, meta bet on self supervised learning

Maximum likelihood method, likelihood function and log likelihood function

Feign implements dynamic URL

I don't care about you. OKR or KPI, PPT is easy for you
![Jerry's synchronous weather information to equipment [chapter]](/img/a9/e09bbf62161ea8ba60b0fce3fb5f89.jpg)
Jerry's synchronous weather information to equipment [chapter]

be based on. NETCORE development blog project starblog - (14) realize theme switching function

A malware detection method for checking PLC system using satisfiability modulus theoretical model

Avoid playing with super high conversion rate in material minefields

Make drop-down menu
随机推荐
中电资讯-信贷业务数字化转型如何从星空到指尖?
ES6 deletes an attribute in all array objects through map, deconstruction and extension operators
在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习
The force deduction method summarizes the single elements in the 540 ordered array
Make drop-down menu
2022 new examination questions for safety management personnel of hazardous chemical business units and certificate examination for safety management personnel of hazardous chemical business units
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Openbionics exoskeleton project introduction | bciduino community finishing
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]
技术实践|线上故障分析及解决方法(上)
GUI application: socket network chat room
Functions and arrays of shell scripts
Ceramic metal crowns - current market situation and future development trend
Future source code view -juc series
Who moved my code!
MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
C import Xls data method summary III (processing data in datatable)
TP5 automatic registration hook mechanism hook extension, with a complete case
Conditional test, if, case conditional test statements of shell script
Containerization technology stack