Reputation: 41735
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
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