-
Notifications
You must be signed in to change notification settings - Fork 95
Bulk Writes in Write API #112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi @SGStino, thanks for the issue, We will take a look. Meanwhile you could use this workaround: List<PointData> points = ...;
await _writeApi.WriteRecordsAsync(WritePrecision.Ns, points.Select(point => point.ToLineProtocol()).ToList()); Regards |
Hi @SGStino, The issue is fixed in 1.11.0 milestone. If you would like to use a preview version use our nightly build:
Regards |
Ok, i'll give it a spin tomorrow. |
Spins like a kitten... Thanks for the quick fix! |
You are welcome |
I've just migrated from InfluxDB.LineProtocol to this library using the WritePointsAsync method.
Code-wise, everything looks to work correctly. But first attempt at uploading something to InfluxCloud had me ..
WritePointsAsync "never" seemd to return. At least, never before i grew inpatient and killed the client.
After investigating the source code of the API, things became clear:
WritePointsAsync
just is implemented as:I'm not familiar yet with the 2.0 Protocols, howerver, i'd asume that there would be some kind of bulk upload option?
Because setting up an HTTP connection to the cloud for every single point sounds like it's going to be exactly as slow as i've experienced :)
As reference, my debug output:
Upload of 1000 points took 00:10:16.8700501
That's a little insane compared to the < 100ms against the InfluxDB.LineProtocol version I had before.
The text was updated successfully, but these errors were encountered: