RedisGraph: Specifing Integer type of values ? Max int?

93 views Asked by At

Is there a way to specify which specific type of integer a property can use : int16, uint32 .. ? or is it just NUMBER ??

Second : which is the biggest integer value that we can use in RedisGraph ?

1

There are 1 answers

2
sentientcabbage On BEST ANSWER

Currently, all integers are stored as 64-bit signed integers, so the max size will always be INT64_MAX. The largest value is theoretically implementation-defined, but on all the systems I'm familiar with this resolves to 0x7fffffffffffffff, or 9,223,372,036,854,775,807.

Since RedisGraph does not use a schema to enforce the types of properties (a.val can be an integer on one node and a string on another), values are stored in a 16-byte struct with type data, so being able to specify smaller integer types would not result in space savings.