How much data can I store per node in Neo4j

I need to save large chunks of Unicode text strings in Neo4j nodes. The documentation says nothing about the size of the data that can be stored per node.

Does anyone know this?

+6
source share
3 answers

I just tried the following with the neo4j web interface:

I wrote a string of 26 characters and duplicated it through 32,000 lines, which is a total of 832,000 characters.

I created a node with the text property and copied my text in it, and it worked perfectly.

I tried again with 64,000 lines with spaces at the end of lines, for a total of 1,728,000 characters. Created a new node, then requested node and copied the result back to the file to check the size (you never know), and wc gave me 1728001 (the error should be in the copy / paste process, I suppose).

He did not seem to complain.

FYI is equivalent to a text with 345600 words of average size 4 and a space (5 characters) and a book of 1000 pages with 300 words per page.

I do not know how this can affect performance if there are too many nodes. If this doesn’t work because of this, you can always think that neo4j stores relationship information, with a property identifier as an identifier for another document-oriented database for text extraction (or just a file path as a property path) .

+5
source

Neo4j is indexed by default using Lucene. Lucene was created as a full-text search toolkit (and Solr is a de facto search engine). Since Lucene was designed to search for large amounts of text, my suspicion is that you can put as much text in a node as you want and it will work fine.

+3
source

Neo4j is a very nice solution for managing relationships between objects. As you already know, these relationships can have properties, as well as the nodes themselves. But I think that you cannot store a “big chunk” of data on these nodes. I think Neo4j was intended for use with another database such as MongoDb or even mysql. You get "very fast" information that you need first, and then look for it using another engine. In my projects I store user names, names, date of birth, identifiers and such information, but not very large text strings.

0
source

Source: https://habr.com/ru/post/895745/


All Articles