# Losing data whenwriting at high throughput

**URL:** <https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666>\
**Category:** InfluxDB 2\
**Tags:** influxdb\
**Created:** [November 10, 2020, 4:04pm UTC](https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666 "2020-11-10T16:04:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![twim](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@twim](https://community.influxdata.com/u/twim)\
**Post date:** [November 10, 2020, 4:04pm UTC](https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666/1 "2020-11-10T16:04:20Z")

</div>

We’re planning on using InfluxDB 2.0 for writing data at a very high frequency. I have noticed that, when writing data using C#'s “InfluxDB.Client” library, most of the data simply gets dropped and never actually gets written to the timeseries. When I lower the rate at which is written, everything seems to work fine.  
I’m not sure if this is a library issue, or a server issue. Either way, what’s the correct way to make sure none of the data gets dropped?

---

<div class="post-metadata">

**Author:** ![twim](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@twim](https://community.influxdata.com/u/twim)\
**Post date:** [November 10, 2020, 4:53pm UTC](https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666/2 "2020-11-10T16:53:36Z")

</div>

It turns out to be an issue where the library doesn’t flush correctly. I can probably work around this 🙂

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [November 11, 2020, 4:32pm UTC](https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666/3 "2020-11-11T16:32:08Z")

</div>

Hello @twim,  
Can you please share the workaround? I’m sure the community would benefit from your knowledge. Thank you.

---

<div class="post-metadata">

**Author:** ![twim](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@twim](https://community.influxdata.com/u/twim)\
**Post date:** [November 19, 2020, 10:36am UTC](https://community.influxdata.com/t/losing-data-whenwriting-at-high-throughput/16666/4 "2020-11-19T10:36:29Z")

</div>

I actually ended up not using the library and simply making a HTTP connection to InfluxDB manually, en just writing line protocol data to it. Since we only have write datapoints, this was the quickest way to fix our problem.
