# Python Multiple clients too slow

**URL:** <https://community.influxdata.com/t/python-multiple-clients-too-slow/2513>\
**Category:** Store\
**Created:** [September 28, 2017, 3:08am UTC](https://community.influxdata.com/t/python-multiple-clients-too-slow/2513 "2017-09-28T03:08:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesus\_cabrera](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jesus\_cabrera](https://community.influxdata.com/u/jesus_cabrera)\
**Post date:** [September 28, 2017, 3:08am UTC](https://community.influxdata.com/t/python-multiple-clients-too-slow/2513/1 "2017-09-28T03:08:39Z")

</div>

Hi guys.  
I have a Python application than create a multiple clients of influxdb (can be UDP)  
I use the most basic write method

jsonMetric = {  
“measurement”: nodo,  
“tags”: {  
“instancia”: self.instancia,  
“ipservidor”: self.ipServidor  
},  
“fields”: {  
“value”: val  
}  
}  
json\_body.append(jsonMetric) // I apend several points here  
then  
and write with  
self.client.write\_points(jsonMetric, time\_precision=‘s’)

All this proceses for only one connection takes around 0.3 seconds  
When I add more “collectors” (40 of them) every with its own client, the write\_points take around 3.2 seconds (the time of preparing data dont change, around 0.1 seconds)

Any Ideas why and how can I fix it??

I try share clients (10 for 30 collectors) and ussing UDP or HTTP but didnt change the result. The server hosting this app is 4 core and 12gb, Influxdb is in the same host.
