2
votes
  1. Does Neo4j support Clob or Blob datatype? I reviewed the documentation, but found that Neo4j supports only primitive datatypes as properties of Nodes or relationships.
  2. Do we have any restriction to number of properties, can Node or relationship hold? What is the optimal size for that?
1
2. there is no restriction to the number of properties per node or relMichael Hunger

1 Answers

0
votes

You might find this link informative, it addresses many scalability issues.

A key quote, that gets to your question:

Neo4j is currently not suitable for storing BLOBs/CLOBs. Nodes, relationships, and properties are not co-located on disk. This might be introduced in the future.

Now, you can use setProperty on a node to store a byte[] or a String, so in this sense you can store arbitrary binary objects or Strings.

But storing very large objects like that above a certain size probably wouldn't be a very good idea. What's that size threshold? Unfortunately I don't know. Someone else may jump in with some advice or guidance there. Presumably, at some point performance may begin to degrade in some way, and of course just to set the property, the object in question would have to fit into memory.