graphaware / neo4j-uuid

GraphAware Runtime Module that assigns a UUID to all nodes (and relationships) in the graph transparently
103 stars 22 forks source link

Bytes taken by UUID #15

Closed DigitalResonance closed 8 years ago

DigitalResonance commented 8 years ago

Hi,

This is not really an issue, more of a query, didn't know where else to ask.

How does this extension store the values internally within the database? Does it store them as UUID ? i.e 128 bits (16bytes) or is it stored as a string ? i.e (32 bytes)

Thanks.

bachmanm commented 8 years ago

Currently the UUID is stored as a String, but it would be trivial to change that. It's for index friendliness, primarily. To be honest, I'm not entirely sure how Lucene would handle raw bytes.

DigitalResonance commented 8 years ago

Thanks for replying Michael.

I believe Lucene does support indexing using byte arrays. I am not altogether sure if it would serve this purpose but if it works it would help shave a bit of overhead on larger datasets.

bachmanm commented 8 years ago

Closing - created https://github.com/graphaware/neo4j-uuid/issues/16