
Query throttling
Lots of work on keeping query pipelines sustainable. Here we demo some work to open up controls for user and organizational level query throttling to ensure the database isn't over-exercised
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
guess I can do a little quick one a lot of screens open all right um so this is um a little bit less on the interesting side but it's something I've been spending a lot working on and um this is kind of a contrived example but um what one of the things that we've been wanting to do is put the ability to uh limit how many queries are executing at at the same time um for a given user or organization or for connection and connection is sort of the big important one as if we're if we just allow a consumer to our client to run as many connections against their database as they want they might actually end up slowing down their database because too
many queries are executing parallel and some databases have configured M stat set for how many can execute in parallel so this is a conted example I have it running two at a time but um can kick off all these queries you can see that these are spinning these do finish these four are still running and they kind of finish two at a time until all of them complete now and obviously two is not the limit that we want set it's very much going to be maybe even the organization can figure how do this but really the the goal here is to protect a a client from overwhelming their own dat it also has implications on a bunch of more complicated query plans that we want
to be able to execute um one of the one of them is a merge query which was probably going to be powering things like a vlookup in future so that we can execute multiple queries in parallel and then when the uh when the queries then complete kick off another job to then merge the results VI something like that but very boring you just watch a lot of queries run slightly slower not boring