OmniTopics (multi base view topics)

TJ Banghart · Friday Demos · January 16, 2026 · 5:38

A new multi-base-view topic in Omni. TJ gives a quick explainer of multi-fact entities and how you can now model them in Omni.

Try it yourselfThe full week on docsmodelingworkbook

Transcript

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

  1. The last thing is kind of a complicated uh concept I think. So if let's look at a topic first. So you have and it's in line with like multi-topic modeling. This is something that I think Scott and Will have been um discussing and bringing bringing to my attention and other engineers attention. Um if you look at a topic you know it has a join path um and it joins starting from this fact table.

  2. So order items are like items that are in a particular order and it joins to users and inventory items, products, distribution centers, stuff like that. And then I have another topic that's the events. So these are sessions that are happening on my website or something like that. Also joins to users, but there are many more events than order items.

  3. Like not every session is going to lead to an order. Um, and it kind of looks like this constellation schema, right? So the topic is going to be one of these fact table graphs. So you have a fact table starting the the base view of the topic. It joins to all these dimension tables. So this would be order items.

  4. And then I have an events fact table and another topic. And I could join on users here, but that would be a very complicated join tree and it might be too large for what I need and then the aggregation would happen after all those joins. Um so it could be not very performant. Um, and there's a lot of different examples where this would be useful, but I'm just going to show you the one that I have working since it's been tricky to actually get down.

  5. Um, so we're introducing this new concept, which is a multi-topic. Um, and you know, we can change the naming of this, but essentially multifact modeling is something that has been discussed and you know, there's some docs out there. You list the topics that are related to each other. You don't really have to define the relationship if they have a shared view.

  6. Um and in the field picker it will appear as all the topics together. So you have the events topic with the events views that are related to it order items um and all of the views that are joined into that and then the shared views. So these this is like users which is one of these dimension tables that they both share is pulled up into its own um kind of shared context.

  7. And the nice thing about this is that when we write the SQL, the topic context for each topic is still self-contained. So the the join paths for a topic and then aggregate not aggregate awareness but uh simags for a particular join path in a topic are preserved and then we just kind of stitch the two together after uh we've done the aggregation.

  8. So you can look at the count of sessions and then maybe the sum cost of products um when there there's a natural relationship between the two. Um and there's a lot to work a lot of work to do here still um and a lot of bugs with this. So this is just a first pass on it. CJ just to ask a sort of crazy question.

  9. Um is there anything to prevent you from doing this across like five unrelated entities that join through users? uh like do you like explicit join in? Uh well sort of like that same schema that you had but like let's just say the center dimension was users and you join to orders and events and returns and support tickets, right?

  10. And they're all sort of pseudo unrelated other than they tree through a user. Is that a potential use case for sort of like an omni explore omni right? Yeah topics. That's kind of what this would hopefully do is like you could have more topics and then we would recognize that oh these actually are they all share the same dimension table that we're going to and then we'll do the join on that versus like starting with a topic that is based on users but it really isn't about users it's about order items and something else.

  11. Um so this is a way to start relating kind of larger or like treat a topic as an object that can be modeled. um instead of being like you know the the terminal point of of I guess. Yeah. No reason not to call them omni topics too. Hey. All right. Omni topics. Any name? Uh yes.

  12. Okay. Uh TJ I guess question is are there any known like I don't know edges weird interactions things we don't expect it to work like would SQL like query views still work if they're in a topic in here like downstream interactions with AI stuff just curious what the edges of it are this is like I just got this working so this is just the start of it I just wanted to show that like we can recognize like the shared paths and then like lift those up which is kind was the hard part for me at least.

  13. Diagram is appreciated for my brain. Thank you. First of all, this is super rad. Um I was just curious how you're thinking through at least initially um uh like if there's two access grants like one on each of the um topics like how those would come together. I'm just thinking through like collisions versus like additive things.

  14. Um that's a good question. I don't have a good answer for it though, unfortunately. I think that's something we have to figure out. Oh, good. Yeah. Yeah, totally. Okay. Well, I'll be back when you demo next time. Thank you. This is Rod. All right. I'm out.