7

求教,统计报表如何计算并写入宽表

 3 years ago
source link: https://www.v2ex.com/t/780703
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

求教,统计报表如何计算并写入宽表

  lihaotian · 41 分钟前 via iPhone · 26 次点击
现在自己想的解决办法有以下几个:

1: 使用 Maxwell 或 Canal,然后由另一个程序计算出之后写入 clickhouse
2: 在程序中埋点,然后再写入 rmq 或者 kafaka,再由另一个程序计算写入 clickhouse

但是现在用的数据库是 pgsql,所以 1 用不了,
如果用 pgsql 自带的 Listen/Notify 性能怎么样? 或者有其他什么好的解决方案?

在程序中埋点太累了,基本不考虑;😂

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK