~~~~~~
目的:实现增量更新
原理
1)第一次全量更新,更新完毕后,删除这个任务。
2)发布增量更新任务即可。
~~~~~~~~~
增量更新任务的模板如下:
curl -xput 'ip:9200/_river/my_jdbc_river/_meta' -d '{type:jdbc,jdbc:{url:jdbc:mysql://ip:3306/fastooth,user:dewmobile,password:dewmobile,sql:select * from users where updated_at between unix_timestamp(now())*1000-60000 86400000 and unix_timestamp(now())*1000 or created_at between unix_timestamp(now())*1000-60000 86400000 and unix_timestamp(now())*1000,schedule:0 0-59 0-23 * * ?,index:ccc,type:ddd}}'
