开发者

Solr: Store SHA1-hashes efficient

开发者 https://www.devze.com 2023-04-12 10:35 出处:网络
I have to store, index and find a lot SHA1-Tokens in Solr. Now I store them as 40-Chars-Hex-strings like 68ac906495480a3404beee4874ed853a037a7a8f. There are about 10,000+ unique SHA1-tokens in my Sol

I have to store, index and find a lot SHA1-Tokens in Solr.

Now I store them as 40-Chars-Hex-strings like 68ac906495480a3404beee4874ed853a037a7a8f. There are about 10,000+ unique SHA1-tokens in my Solr index.

Would it be better to store the values compressed as a 20-Byte BinaryField? (half size of index, more performance...?)

I have read about Krugle in the "Lucene in action"-book who 开发者_Python百科store just some characters in the middle of (compressed) MD5-strings. Would this be better to get maximum search performance?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号