[英]Percona murmur_hash, fnv_64 and fnv1a_64 functions
Can somebody help me understand the use and benefits of these three functions that Percona suggests right after installation? 有人可以帮助我理解Percona在安装后立即建议的这三个功能的用法和好处吗?
* Percona XtraDB Cluster is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
* Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
* See http://www.percona.com/doc/percona-server/5.7/management/udf_percona_toolkit.html for more details
I have never been able to find documentation that clearly explains these function, and what benefits/advantages you get from them. 我从来没有找到能清楚说明这些功能以及从中获得什么好处/优点的文档。
The benefit of these functions are "faster checksums"...ie more efficient implementations of a couple of hash functions. 这些功能的好处是“更快的校验和”……即几个哈希函数的更有效实现。
But that's only a benefit if you have a need (requirement) generate values provided by these hash functions. 但这仅是有益的,如果您有需要(要求)生成这些哈希函数提供的值。
If you don't have any need to generate hash values, then these functions don't provide any benefit. 如果您不需要生成哈希值,则这些函数不会提供任何好处。
References: 参考文献:
http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function
http://en.wikipedia.org/wiki/MurmurHash http://en.wikipedia.org/wiki/MurmurHash
http://en.wikipedia.org/wiki/Hash_function http://zh.wikipedia.org/wiki/哈希函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.