latitude-dev / latitude

Developer-first embedded analytics

Home Page:https://latitude.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latitude server should maintain connectors state between queries

geclos opened this issue · comments

Right now every call to api/queries is triggering new connector instance, which triggers a new connection to the DB. This is very problematic and should be fixed. The server should maintain a list of opened clients and reuse them in case multiple queries to the same db are requested.