Multithread with weaviate

We are using weaviate python v4 library.

We have an application that has 10 threads, and we will do a search with weaviate in each thread whenever there is a request come in. We do not want to keep opening and closing connections to the weaviate db.

What is the recommended way to build and maintain a connection pool for such multithreaded application?

Thanks,
Robert

hi @rhuang !!

I believe the best option here is leveraging out Async Client:

Let me know if this helps.

THanks!