Schema refresh debugger

Conrad Slimmer · Friday Demos · March 28, 2025 · 3:29

We added more metadata for schema refreshes to understand where time is spent or any associated errors.

Try it yourselfThe full week on docsadministrationmodeling

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Um, I I'll go since Stephen didn't demo some of his work this week, I'll demo it because then I built on top of it um and did a couple bug fixes alongside. So again, credit to Stephen here. I think uh what do we want? We want this guy. So everybody should see my Chrome window. I'm just in playground.

  2. I don't know. I stole somebody's connection. Hogwarts. Uh somebody must have been playing around with some Hogwarts data. But uh anyway, we've had quite a few complaints in the past or recently of uh schema refresh being slow and also challenging to debug when things go wrong. So we've started making some improvements to that. I'm just going to real quick run a schema refresh.

  3. Like it's kind of slow. And uh to show the new behavior again, UI skills are awesome here. Stephen added this piece uh where we now have some timing data around um how long the different stages of schema refresh took. So um you can see the total model generation and each schema that got generated, how long it took.

  4. So kind of useful stuff and also if there was an error uh in the schema process that should be surfaced here. Uh I did some stuff to add to that. So we're just going to turn on branchbased schema refresh for this connection. Uh and then once I do that I should be able to just make sure this page picks that up.

  5. Um, we had a fun bug that uh was showing the refresh refreshing schema little progress bar uh indefinitely before. So, um, you know, this should no longer do that. And so we're going to refresh the schema. And before this would have been uh just refreshing forever. So fixed that. And also we now um you can see the time on this was 10:02.

  6. That's the schema refresh that I did when we were actually in model mode. Now we show the branch schema refresh in the connections page. And uh just so that it's clear what happened, we also will include a little target branch in the details here. So uh more of a PSA than anything else, but if you're having uh long running schema refreshes and you want to figure out what the heck's going on, there's now some data around that.

  7. And uh also if you're having any challenges uh figuring out why some schema refresh isn't working, uh come chat with me and we'll talk about getting more debug information into that little um you know refresh stats uh JSON payload.