当前位置:网站首页>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
边栏推荐
- Remember a lazy query error
- Hbuilder link Xiaoyao simulator
- Pyinstaller packaging py script warning:lib not found and other related issues
- 【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
- Jerry's watch listens to the message notification of the target third-party software and pushes the message to the device [article]
- String hash, find the string hash value after deleting any character, double hash
- Conditional test, if, case conditional test statements of shell script
- A malware detection method for checking PLC system using satisfiability modulus theoretical model
- 2022 electrician (elementary) examination question bank and electrician (elementary) simulation examination question bank
- Difference between value and placeholder
猜你喜欢
Introduction to superresolution
Hash table, string hash (special KMP)
String hash, find the string hash value after deleting any character, double hash
MySQL introduction - functions (various function statistics, exercises, details, tables)
Technical practice online fault analysis and solutions (Part 1)
MySQL deadly serial question 2 -- are you familiar with MySQL index?
A malware detection method for checking PLC system using satisfiability modulus theoretical model
Audio resource settings for U3D resource management
Hbuilder link Xiaoyao simulator
Three layer switching ①
随机推荐
MySQL -- Introduction and use of single line functions
G3 boiler water treatment registration examination and G3 boiler water treatment theory examination in 2022
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
How programmers find girlfriends through blind dates
The contact data on Jerry's management device supports reading and updating operations [articles]
51 MCU external interrupt
Feign implements dynamic URL
Do you know the eight signs of a team becoming agile?
Typescript basic knowledge sorting
Stringutils and collectionutils
Openbionics robot project introduction | bciduino community finishing
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
Description of setting items of Jerry [chapter]
C import Xls data method summary II (save the uploaded file to the DataTable instance object)
Solution of cursor thickening
Remember a lazy query error
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
Decompile and modify the non source exe or DLL with dnspy