Closed DeshErBojhaa closed 2 years ago
@DeshErBojhaa I don't understand the need to add a random delay before each insert, can you explain please?
@DeshErBojhaa I don't understand the need to add a random delay before each insert, can you explain please?
Absolutely! All the chains creates block at seconds granularity. That means our flush function in TL will be called at second's granularity. Which clutters the DB call on cockroach. This PR ensures that we don't go to the DB once at a time (at the begening of the second). Rather we spread calls to DB throughout the second. (Actually haft of a second, but the same idea).
Please let me know if this clarifies the query.
@DeshErBojhaa I don't understand the need to add a random delay before each insert, can you explain please?
Absolutely! All the chains creates block at seconds granularity. That means our flush function in TL will be called at second's granularity. Which clutters the DB call on cockroach. This PR ensures that we don't go to the DB once at a time (at the begening of the second). Rather we spread calls to DB throughout the second. (Actually haft of a second, but the same idea).
Please let me know if this clarifies the query.
It's clear tyvm!
What about adding this explanation in the comments ?
Please let me know if this clarifies the query.
I'll send it again after some jitter.
Addresses:
Adds:
curl
in the TL image (required for sending http requests to exporter)