当前位置:网站首页>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
边栏推荐
- Msp32c3 board connection MSSQL method
- Jerry's update contact [article]
- MySQL statement learning record
- Mongodb learning notes: command line tools
- Decompile and modify the non source exe or DLL with dnspy
- C import Xls data method summary IV (upload file de duplication and database data De duplication)
- Force buckle day32
- Pesticide synergist - current market situation and future development trend
- mysql使用視圖報錯,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
- After listening to the system clear message notification, Jerry informed the device side to delete the message [article]
猜你喜欢
IPv6 experiment
Douban scoring applet Part-3
Three layer switching ②
Do you know the eight signs of a team becoming agile?
Hbuilder link Xiaoyao simulator
Conditional test, if, case conditional test statements of shell script
String hash, find the string hash value after deleting any character, double hash
Since the "epidemic", we have adhered to the "no closing" of data middle office services
Hash table, string hash (special KMP)
GUI application: socket network chat room
随机推荐
How to use AHAS to ensure the stability of Web services?
Summary of JWT related knowledge
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
Do you know the eight signs of a team becoming agile?
Hash table, string hash (special KMP)
Gee: create a new feature and set corresponding attributes
Pyrethroid pesticide intermediates - market status and future development trend
SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
“疫”起坚守 保障数据中台服务“不打烊”
TP5 automatic registration hook mechanism hook extension, with a complete case
Feign implements dynamic URL
LeetCode 168. Detailed explanation of Excel list name
IPv6 experiment
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
Introduction to unity shader essentials reading notes Chapter III unity shader Foundation
CLP information - how does the digital transformation of credit business change from star to finger?
It's corrected. There's one missing < /script >, why doesn't the following template come out?
Introduction to superresolution
[typora installation package] old typera installation package, free version
Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?