
Query timing debug
A rich debugger for every step of the query, so both customers and Omni can better understand and improve speed in the app
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I guess I can do a little quick one um my screen um so I in the middle of doing some other things um last week I was trying to play with um showcasing sort of what happened when you ran a query um and primarily from the perspective of like how long things took but also just for you know increased ABG ability I found myself jumping back and forth between uh digging in through the web inspector trying to figure out I have Chrome extension does something similar but wanting to sort of get an understanding of like what happened when you ran the query like was anything slow was it was it the database was it something that we're doing Etc and while this is definitely not
the the UI that we want to move forward with I was just playing like what could it look like um and and sort of the first thing I started with was just like can we toss the timing information for the query execution and planning and all that somewhere into DUI so I picked the inspector um one it gives you a query the job ID which while that won't be useful at all for a customer um it's definitely something that we could uh use to sort of look up what actually happened it logs for that query just to make sure that something didn't go catastrophically wrong but kind of showcasing like how long it took to do planning um the orchestration for like how a query
actually executed like this breaks down like this is how long it took to actually plan the job this is how long it took to execute it you want be like okay what actually happened there this is a split plan query so we can see the multiple different stages the first where it connects to the probably postgress database executes the query Pro you know processes whatever the data and then the requery on top of that you know building up connection pulling data in executing a query against it and writing data out again what are these numbers Johnny these are in milliseconds okay those are small numbers yeah so it's it's pretty fast um but and obviously like this is information that may be more detailed than
any customer really needs to see um but may be useful for us in debugging I do think that there is um some interesting opportunities to sort of maybe summarize and aggregate some of these numbers so for example like overhead what does that look like um versus query execution and connection to database and some of those sorts of things there's a huge trust aspect with this with customers actually too so I I think even just knowing that it exists is a really big deal for folks even if it's like a little bit hard to parse um like it just this alone goes a really really long way for folks just to like trust that we're communicating what we're doing really clearly yeah people asking for like
this but in like a dag format uh it's not uncommon and I was playing with so this is the single query um which sort of is an interesting uh interesting place to start we already have on the workbook like an inspector for us to shove uh data in but I I kind of continued to to play with like well what would this look like for a dashboard and while I don't have the UI for it um sort of open up the question and been talking with Sarah a little bit about what that could look like but you know basically showing a breakdown of all of the tiles on the dashboard maybe even highlighting the slow one or something along those lines um and showcasing like
what's happening maybe even going into like I have a poll request that that I popped open that basically walked through like a very brief definition of what each one of these different things are um which sort of we could expose in either again to ourselves if we really wanted to or to a customer maybe with some um some significant handholding or something like that but just to say like this is what what happened what's going on and if if you see slow execution time it probably means this and this is something a big push that you know we I've done in the past just to make it clear sort of what's happening and where so that we can make recommendations as do what's going on
and while this data is sort of for a single or for multiple queries on a dashboard um we are starting to collect all of this information for all queries that are executing while we don't have great ways to query it yet um I have some log related tools that sort of can allow us to do that definitely something that would make sense probably to put in sort of into that analytics page that we have for our customers so that they could you know analyze these things themselves if they were interested if we put this out there isn't some C we're going to go look at that connection time notice that it's longer than the other times to be like do you all not have connection
pooling set upst I'm gonna go ahead and say they're absolutely not gonna do that could Fe if they be a good good reason for us to have to go do it when we get when we get the sophisticated customer that ask for that that sounds great