Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is neo4j persistence implemented?

How is neo4j persistence of nodes and relations implemented? How are indexes handled?

like image 762
amirouche Avatar asked Dec 31 '09 18:12

amirouche


2 Answers

On indexes: Neo4j does not have indexes on it's own. It only has an interface called IndexerService, that is implemented by Lucene (for example), which is quite fast and handles exact and full-text searches quickly, but does not support any-search.

It's easy to index nodes in neo4j, you just call the function index(node, key, value); and it's indexed.

Not sure about how persistence is implemented.

like image 162
Tom Ilsinszki Avatar answered Nov 05 '22 01:11

Tom Ilsinszki


It looks like they use their own storage implementation. Look around org.neo4j.kernel.impl.nioneo.store package.

like image 38
Bartek Jablonski Avatar answered Nov 05 '22 00:11

Bartek Jablonski