vertica / vertica-grafana-datasource

Official Vertica datasource plugin for Grafana.
https://grafana.com/grafana/plugins/vertica-grafana-datasource/
Apache License 2.0
3 stars 9 forks source link

Added connection pooling #4

Closed rajsameer closed 3 years ago

rajsameer commented 3 years ago

Hi Guys,

I am adding a PR, which will support connection pooling in this data source. Right now for each query a new connection is created, which reduce performance of the data source on dashboards with multiple queries and environments with multiple user. In this PR, we give user the ability to provide number of connection and time out. Adding MaxConnection = 0, stimulates an environment like before, where a new connection will be created for each query.

Please provide feedback, if the change looks okay.

nicolaerosia commented 3 years ago

is anyone reviewing?