DataValues/DataValues — pull request #6 by thiemowmde (2014-05-23 11:42:51+00:00)
Title: Specify hash length

I think some kind of specification is needed at this point. It's quite impossible to build efficient database structures on top of such an underspecified hash function if it can be anything (including megabytes of text).

Usually hashes are integers (e.g. in Java) or specified to use a hash function with a fixed or maximum length (e.g. MD5 is 128 bit, SHA1 is 160 bit).

My suggestion is 255 characters. This seems to be the smallest common maximum prefix length for database indexes, as far as I'm aware of.