question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch write multiple points

See original GitHub issue

Influx supports writing multiple points at once and we would probably get much better performance with such batching.

I think the easiest is to rewrite writePoint so that it can take an array of points. The code should not be much different.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bencevanscommented, Jun 26, 2019
0reactions
elhenrocommented, Jun 27, 2019

@bencevans thank you for the support, but now it works as expected. The error message *.forEach is not a function was just a little confusing to me, i did not pass the data in the right format.

After adjusting the points data to objects inside an array (not nested arrays) and adjusting the schema for it, it batch writes to influxdb. As expected this is a lot faster.

Edit: btw. I had to set max-body-size = 0 in /etc/influxdb/influxdb.conf to prevent the error 413 request entity too large error

Read more comments on GitHub >

github_iconTop Results From Across the Web

InfluxDB - batch write multiple points with the same tag
When I write multiple points with the same tag value, it only writes the first point to the database. Is this a bug...
Read more >
Batch write multiple points with the same tag #349 - GitHub
Hi,. When I write multiple points with the same tag value, it only writes the first point to the database. Is this a...
Read more >
BatchWriteItem - Amazon DynamoDB - AWS Documentation
The BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can transmit up to 16MB...
Read more >
Inserting, Deleting, and Fetching multiple items at a time with ...
batchWrite and batchGet are a way to get the parallelism of sending multiple writes or gets in multiple threads regardless of whether or...
Read more >
DynamoDB - Batch Writing - Tutorialspoint
Batch writing operates on multiple items by creating or deleting several items. These operations utilize BatchWriteItem, which carries the limitations of no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found