Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficient way of checking & publishing new data #12

Closed
ljfreelancer88 opened this issue Jun 14, 2020 · 1 comment
Closed

Efficient way of checking & publishing new data #12

ljfreelancer88 opened this issue Jun 14, 2020 · 1 comment
Labels

Comments

@ljfreelancer88
Copy link

ljfreelancer88 commented Jun 14, 2020

Hi, I'm wondering if it requires to hit the database every 3sec. for checking if there's a new data before it publish?

@ljfreelancer88 ljfreelancer88 changed the title Efficient way of publishing new data Efficient way of checking & publishing new data Jun 14, 2020
@hhxsv5
Copy link
Owner

hhxsv5 commented Jun 15, 2020

Need to adjust the time interval according to your business requirement, 3 sec is just the default interval.

new Update(function () {}, 10); // interval: 10s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants