eugene
eugene

Reputation: 41735

elasticsearch-py connection pool

Doc just shows how to create a connection with Elasticsearch()

Not sure if I'm reusing connection(using connection pool) in my django view.

Do I need to setup something special to use connection pool or is it just given automatically as database connection pooling?

Upvotes: 3

Views: 2501

Answers (1)

kevin.w.johnson
kevin.w.johnson

Reputation: 1794

The ConnectionPool is only used if multiple connections are defined. You can use the add_connection method of the Transport class to add multiple connections.

Upvotes: 1

Related Questions