pyrooka / metabase-cubejs-driver

Connect Metabase with Cube.js.
GNU Affero General Public License v3.0
4 stars 6 forks source link

Support long polling #17

Closed tromika closed 5 years ago

tromika commented 5 years ago

Datawarehouse queries could be long and run for a few minutes. So the goal is to seamlessly support long-running queries without the need of re-run those with UI actions. As between cube.js and Metabase the connection is over http the connection could be terminated for many reasons. Also cube.js REST API can respond with continue wait so somehow we should tackle this and still wait for the results.

pyrooka commented 5 years ago

Thanks, it's a good idea! We have to examine if we are able to override the global query timeout or not.

pyrooka commented 5 years ago

These are the default query timeouts (20 min for prod). I guess it's enough for us. So the only thing we have to do is handle the Cube.js "continue wait" response.