# Problem with Bulk API instantiation

**URL:** <https://discuss.elastic.co/t/problem-with-bulk-api-instantiation/123319>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 6:23pm UTC](https://discuss.elastic.co/t/problem-with-bulk-api-instantiation/123319 "2018-03-09T18:23:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Post date:** [March 9, 2018, 6:55pm UTC](https://discuss.elastic.co/t/problem-with-bulk-api-instantiation/123319/4 "2018-03-09T18:55:02Z")

</div>

you were right!  
7770 records in about a minute!

Edit by @dadoonet: Related post:

> [@Java REST Client and Multithreading](https://discuss.elastic.co/t/java-rest-client-and-multithreading/123298/1):
>
> Is the Java REST Client Thread safe? Can I instantiate a single client object and share among the threads? Or should I open separate connections in each thread?

---

_[View the full topic](https://discuss.elastic.co/t/problem-with-bulk-api-instantiation/123319)._
