r/dataengineering • u/raginjason Lead Data Engineer • Nov 21 '25
Discussion Is one big table (OBT) actually a data modeling methodology?
When it comes to reporting, I’m a fan of Kimball/star schema. I believe that the process of creating dimensions and facts actually reveals potential issues inside of your data. Discussing and ironing out grain and relationships between various tables helps with all of this. Often the initial assumptions don’t hold up and the modeling process helps flesh these edge cases out. It also gives you a vocabulary that you don’t have to invent inside your organization (dimension, fact, bridge, SCD, junk dimension, degenerate dimension, etc).
I personally do not see OBT as much of a data model. It always seemed like “we contorted the data and mashed it together so that we got a huge table with the data we want” without too much rhyme or reason. I would add that an exception I have made is to join a star together and materialize that as OBT so that data science or analysts can hack on it in Excel, but this was done as a delivery mechanism not a modeling methodology. Honestly, OBT has always seemed pretty amateur to me. I’m interested if anyone has a different take on OBT. Is there anyone out there advocating for a structured and disciplined approach to creating datamarts with an OBT philosophy? Did I miss it and there actually is a Kimball-ish person for OBT that approaches it with rigor and professionalism?
For some context, I recently modeled a datamart as a star schema and was asked by an incoming leader “why did you model it with star schema?”. To me, it was equivalent to asking “why did you use a database for the datamart?”. Honestly, for a datamart, I don’t think anything other than star schema makes much sense, so anything else was not really an option. I was so shocked at this question that I didn’t have a non-sarcastic answer so I tabled the question. Other options could be: keep it relational, Datavault, or OBT. None of these seem serious to me (ok datavault is a serious approach as I understand it, but such a niche methodology that I wouldn’t seriously entertain it). The person asking this question is younger and I expect he entered the data space post big data/spark, so likely an OBT fan.
I’m interested in hearing from people who believe OBT is superior to star schema. Am I missing something big about OBT?
64
u/paplike Nov 21 '25 edited Nov 21 '25
Not a modelling methodology per se, but as you said, it can be useful. In my company, we have an underlying Kimball star schema as the base. Then we build some aggregate tables off of that, some of which are OBT because some analysts prefer it. It’s effectively a view
20
u/DenselyRanked Nov 21 '25
If you work with large scale data and a constantly evolving business model, then you will find value with OBT.
In terms of ease-of-use, it allows for more flexibility in schema changes than Kimball and governance is confined to fewer tables. However, your users will need to write more complex queries to extract nested data and that could lead to negative user experience.
In terms of performance, distributed query engines that can interpret complex data types will use less compute with OBT.
I think having a hybrid approach works best. Use generic denormalized mostly flattened datasets that represent a core business vertical, and use a semantic/reporting layer, materialized views, and agg tables for stakeholder analysis.
10
u/Icy_Clench Nov 21 '25
OBT can’t be used for analytics once you have multivalued dimensions. Some people try and use DISTINCT everywhere as a band-aid for that but some analytics are actually impossible there.
9
u/IndependentTrouble62 Nov 21 '25
Star is usually a better data model than OBT. However, OBT can be a step to a fully modeled star schema. You create a OBT then break it apart into a fully modeled star. This allows you to start developing reports / dashboards more quickly while still working your way through the full dimensional model. This is most often done when rapidly prototyping in a tool like PowerBI.
OBT also works better for some niche storage / warehouse types. An example of this would be Microsoft ADX which actually has very poor join performance if you have a dimensional table that may be large. ADX has no row indexes which means lookup key performance is very bad. In order to mitigate this limitation ADX very much favors OBT data design over dimensionaal / Kimball modeling.
2
u/[deleted] Nov 21 '25
If you design right, one big table can basically reflect the full star schema, and it’s very easy to maintain and efficient to query with zero joins.
3
u/discord-ian Nov 21 '25
Yes OBT is a methodology and it has it's place. But most real world data can't be modeled satisfactorily with it. All of the major methodologies, Kimball, Inmon, data vault, and more modern approaches like OBT have good insights (with some dog shit ideas mixed in). In my opinion most platforms of any sufficient complexity will steal a little bit from each.
Our warehouse has flat tables for certain reports, star schemas for other data marts. Some data vault style satellite and bridge table models in other places. I don't think following one approach will lead to the optimal solution for all data modeling challenges.
Generally I think it makes sense to move up in complexity only when it is required. If your data can be put in OBT without loosing meaning do it. If not, then ask can it fit in a star schema, if so do that. Is it too complex for that, then look at something more like data vault or more complex relational models.
7
u/LargeSale8354 Nov 21 '25
I read an article by Thomas Kesjer that pointed out that OBT doesn't necessarily outperform a well designed star schema. The premise of OBT is that joins are bad. Not necessarily true. Many DB engines will use the statistics of the tables to optimise the query and that includes rapid elimination of irrelevant records. A small table joined to a large table might allow the engine to eliminate the majority of records. With OBT the engine would have to read and eliminate based on a massive number of rows.
1
u/WhoIsJohnSalt Nov 21 '25
90% of your business are using OBT methodology - in Excel, so it's an ingrained way that people want to approach their data.
If that's right or wrong is an excercise left to the reader
3
u/kenfar Nov 21 '25
Unfortunately, too many developers are just building what's easy, and what they know instead of learning the pros & cons of each and using each when appropriate.
So, both approaches have value, but generally a OBT without backing versioned data is the weaker solution in terms of usability, maintainability, and functionality. It could still be worth it - especially if the reporting tool is optimized for it. But it's not the upgrade.
5
u/Both-Fondant-4801 Nov 21 '25
I don't think there is such a thing as "superior data modeling technique". The ideal data model is determined by the type of data warehouse as well as the types of data stored and the use-cases. Big data came in to the scene specifically to address limitations of traditional data processing such as the inability to model unstructured and semi-structured data as well as the need for fast real-time analytical queries.
OBT as a fully denormalized model allows all data in a single table as it is best for read-heavy analytical queries using map-reduce algorithm (hive, hadoop) or vector queries (columnar like clickhouse, hbase). Obviously, normalized data model will not work with a columnar database. And in the same way, OBT is not meant for transactional systems using traditional data stores.
2
u/HarskiHartikainen Nov 21 '25
OBT can have it's use cases. To be honest I'd rather go with One Table. Because bigger the table is especially row-wise more faster it will shit the bed. It will be bloated with the same text values repeating multiple rows etc.
But if the tooling or the use case requires use the OTB. For PBI, use Star Schema.
2
u/sspaeti Data Engineer Nov 21 '25
I asked myself the same question and asked a bit around, rhis was the outcome:
It seems more a common term with no definition. I share more at https://www.ssp.sh/brain/one-big-table/#history.
2
u/GreyHairedDWGuy Nov 22 '25
OBT is not a model methodology. It's almost the opposite. Are there use cases for it, probably. However, IMHO, it can explode into a bunch of OBT's that become a swamp of overlapping data that creates a maintenance headache.
2
u/No-Buy-3530 Nov 22 '25
We always used OBT for predictive modelling especially. Ready prepared wide table with 10000 columns. Worked great
1
u/[deleted] Nov 21 '25
I guess it really depends on how the end users consume the data, and the capabilities of the tooling. Start schema sometimes leads to too many joins, which can be inefficient and hard for non-technical stakeholders. Also, OBT is cheap as storage is basically free whereas compute is not.
1
u/rotr0102 Nov 21 '25 edited Nov 21 '25
I’ll fine tune your question a bit. Start with a Kimball star, with a good fact table design, and let’s talk about junk dimensions. Your source system has 100 columns of transactional system codes on the table. What do you do with that?
Options include:
Number 4 is where OBT really stands out to me. It’s not “let’s convert the data warehouse from stars into spreadsheets”, but rather lets execute DW projects faster by simplifying data modeling and ETL. Facts switch from traditional narrow tables to wide tables, with columns hidden for user convenience.
1
u/FormalVegetable7773 Nov 22 '25
What about if your working with TBs of data ? Would joining to a dim table with million rows be less performant than OBT?
1
u/MoRakOnDi Nov 23 '25
It’s just different, not immature.
For example, I use OBT extensively for network event data. By pre-joining static dimensional data early in the pipeline, I enable very fast fault detection, deduplication, incremental processing, and data stitching (request/response/multi-segment), among other things.
I don’t have the luxury of maintaining slowly changing dimensions or pre-calculating fact tables. Instead, protocol attributes and configuration definitions are broadcast-joined, and events are simply appended.
On top of that single OBT, we define alerts and SLAs per region, per network, per device; whatever dimension matters. It’s fast, reliable, and operationally cheap.
OBT model isn’t immature. It’s just optimised for a different use-case.
-15
u/TheOverzealousEngie Nov 21 '25
Can I gently suggest that you're a dinosaur that lives in the 1990's with Kimball. Does anyone not find it strange that that model was not updated with the introduction of CDW??! I mean what's the difference in DW between finite memory, disk and cpu to near infinite of each today. All of that star schema stuff had it's day , now CDW's can shine with OBT's.
0
u/[deleted] Nov 21 '25
[deleted] — view deleted comment