mysql-hll:用于 MySQL 的 HyperLogLog UDF

时间:2021-06-13 17:40:57
【文件属性】:
文件名称:mysql-hll:用于 MySQL 的 HyperLogLog UDF
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-13 17:40:57
C 用于 MySQL 的 HyperLogLog UDF 例子 增量积累 CREATE TABLE ` uniqueUsersPerDay `( ` day ` DATE PRIMARY KEY , ` hll ` BLOB); SET @bits = 14 ; -- set storage size to 2^@bits bytes (standard error 0.81%) SET @userId = 1 ; INSERT INTO ` uniqueUsersPerDay ` ( ` day ` , ` hll ` ) VALUES (CURDATE(), HLL_CREATE(@bits, @userId)) ON DUPLICATE KEY UPDATE ` hll ` = HLL_ADD( ` hll ` , @userId) ; SET @userId = 2 ; INS
【文件预览】:
mysql-hll-master
----.gitmodules(78B)
----deps()
--------hll()
----test()
--------all.sh(531B)
--------sql()
----LICENSE(1KB)
----src()
--------main.c(10KB)
----.gitignore(19B)
----Makefile(540B)
----README.md(2KB)

网友评论