1

This is my code:

write_api = client.write_api(write_options=ASYNCHRONOUS)
write_api.write(bucket, org, data, write_precision=WritePrecision.US)

1 - How can I detect writing errors?

2 - Should I initialize write_api each time I want to write or I can initialize it once and use the same object all the time?

1 Answer 1

0
callback = write_api.write(bucket, org, data, write_precision=WritePrecision.US)
callback.wait()
callback.get()

Is the only way I found. Unfortunately the wait basically makes it synchronous decreasing the performance.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.