Skip to content

feat: Add async/await Write API without batching #102

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

Merged
merged 4 commits into from
Jun 23, 2020
Merged

Conversation

rolincova
Copy link
Contributor

Closes #23

Added WriteApiAsync for asynchronous write without batching.

  • CHANGELOG.md updated
  • Rebased/mergeable
  • Tests pass
  • Sign CLA (if not already signed)

@rolincova rolincova requested a review from bednar June 16, 2020 07:36
@rolincova rolincova changed the title Feat/write api async Feat: WriteApiAsync Jun 16, 2020
Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use rebase instead of merge commit.

@rolincova rolincova force-pushed the feat/write-api-async branch 2 times, most recently from 210ff62 to e63ca2d Compare June 16, 2020 08:04
@bednar bednar force-pushed the feat/write-api-async branch from e63ca2d to d6b6bf6 Compare June 17, 2020 10:41
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2020

Codecov Report

Merging #102 into master will decrease coverage by 0.27%.
The diff coverage is 5.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
- Coverage   15.95%   15.67%   -0.28%     
==========================================
  Files          49       50       +1     
  Lines        4852     4989     +137     
  Branches      244      252       +8     
==========================================
+ Hits          774      782       +8     
- Misses       4058     4187     +129     
  Partials       20       20              
Impacted Files Coverage Δ
Client/InfluxDBClient.cs 0.00% <0.00%> (ø)
Client/WriteApiAsync.cs 6.15% <6.15%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3547608...5497178. Read the comment docs.

@bednar bednar added the enhancement New feature or request label Jun 17, 2020
@bednar bednar changed the title Feat: WriteApiAsync feat: Add async/await Write API without batching Jun 17, 2020
Client/README.md Outdated

namespace Examples
{
public static class WriteLineProtocol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to WriteApiAsyncExample

Arguments.CheckNonEmptyString(org, nameof(org));
Arguments.CheckNotNull(precision, nameof(precision));

foreach (var record in records) await WriteRecordAsync(bucket, org, precision, record);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could produce more than one request. Please change implementation to concat whole list into one request.

@bednar bednar added this to the 1.10.0 milestone Jun 23, 2020
@bednar bednar force-pushed the feat/write-api-async branch from 8164b18 to 5497178 Compare June 23, 2020 07:56
@bednar bednar merged commit e2eba69 into master Jun 23, 2020
@bednar bednar deleted the feat/write-api-async branch June 23, 2020 08:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add async/await Write API without batching
3 participants