LDB
LDB

Reputation: 692

Neo4j string or text data types

Trying to work with strings. Can't find any specs about this data types. What is the max length os String in Neo4j? If the limit is 256, is there a larger type, like Text?

Upvotes: 4

Views: 1382

Answers (1)

Stefan Armbruster
Stefan Armbruster

Reputation: 39915

In Neo4j there's no distinction between a string and something like TEXT. Property values in Neo4j can be java primitive types (int, long, double, boolean, ...), Strings and arrays of those. Strings in java can have an arbitrary length, same applies for Neo4j.

Be aware that long strings get handled internally different, see http://neo4j.com/docs/stable/property-compression.html#_compressed_storage_of_short_strings. This does not impact the client behaviour but can impact on the performance.

Upvotes: 4

Related Questions