Neo4j string or text data types

青春壹個敷衍的年華 提交于 2019-12-07 09:16:28

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/28217352/neo4j-string-or-text-data-types

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!