DTStack / DTStack/chunjun

Http-x is the sink side. How do I execute insert statements every few seconds?

Open
#1,283 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [ ] I had searched in the [issues](https://github.com/DTStack/chunjun/issues) and found no similar question.

- [ ] I had googled my question but i didn't get any help.

- [ ] I had read the documentation: [ChunJun doc](https://dtstack.github.io/chunjun) but it didn't help me.

### Description

emqx为source端;
http为sink端;
从emqx计算数据到http;
但是emqx的数据量巨大,http请求是更新数据库的数据,如果每次都处理数据,对http服务器是一个很大的压力,对数据库也有可能造成死锁的情况!!
因此,我需要每隔几秒,执行一次insert into sink select * from source!
我该怎么做,才行?

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.