Schema filtering with wildcards

Conrad Slimmer · Friday Demos · August 29, 2025 · 5:41

Some new tools for curating the data model and improving performance.

Try it yourselfThe full week on docsadministrationmodeling

Transcript

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

  1. Good morning. Good morning. All right. Uh, I've got uh Chevy Quickish couple things. These are actually in production now, but I'm doing it on my local database because um I'm messing with a local database for the demo. So, this is my local test database. You can see I've um I've added some columns demo to four different tables here.

  2. And the thing to note about those tables also is a couple of them are in this other schema. All types and then users and orders are the ones we're familiar with that are in the public schema. Uh so if I um am in here and actually this worth noting this model is set up as a or this connection set up for branch schema refresh.

  3. So if I jump in and I refresh schema um it's going to ask me for a branch. And there's also a couple of new uh inputs here that um and the the branch will only show up if you're not in a branch and you require a branch. But now you will always get this a dialogue when you go to refresh your schema.

  4. Uh and the change is now I can specify um a table or a schema filter and these two work in conjunction with each other. uh so that we can do selective refresh uh rather than refresh the entire database schema. So you'll see that'll run. Users picked up this new column. But if I go into like orders, uh that column's not there.

  5. Uh I can now I could come and refresh again. And maybe I actually want to um refresh the all types uh schema. And actually, it's worth noting that this uh should work with wild cards. Uh so you see I've got all underscore star. And uh if everything works correctly, uh order still doesn't have the demo column, but um it did get picked up in the all type schema.

  6. You know, if I come back in and refresh um you know without any filters, then I can jump back over to orders. And you can see that orders now has the demo column. Uh so just the ability to uh select schema table combinations that you do or don't want refreshed. Uh two kind of use cases for this.

  7. One is like if you're just iterating on a table and you want to have a faster refresh cycle, you can put in just that table name and filter the schema down and then we don't have to blast through your whole um database, all the schemas and all the tables. If you're doing a simple uh table name, no wild cards in it and just one table name, then we'll actually push the table name down to the SQL uh so that we're transferring less data, asking for less data back.

  8. So that that's going to be the fastest is if you filter both the schema and a simple table name with no wild cards. Uh the other thing I was going to show uh while I was doing that was Oh yeah, if you take a look at um I left my branch uh we've got three schemas. I've actually got more schemas, but I've limited down to these three schemas in this model.

  9. And um we've added along with the ability to do wild cards in the selective refresh, I can now actually specify wild cards in the include schema uh box here. So um if I do that and refresh, we'll actually undo this refresh. uh just let it know that it's been updated. I'll refresh. No filters. Worth noting that when there are selected filters, we're doing an additive merge.

  10. We're doing a soft refresh. Uh so it's never destructive if you're actually putting in um any kind of filtering on there. So I've refreshed this schema. And if I jump back into my model, pick that up, you can see that now, um, I'm filtering down to only those two schemas, uh, using a wild card. This same wild card behavior is available for a feature that Stephen added a couple weeks ago called offloaded schema.

  11. So, this is where it's probably most useful is say I want to offload my dev dbt schemas. Um, then I could put in something in here like star_dev and then as I add new schemas um to my to my dev world, I'll pick them up as offloaded schemas uh without having to come in and and modify the connection settings at all.

  12. So, just a couple um quality of life improvements around schema refresh and connection setting. Good