Data Talk #80: Serge Gershkovich (Speciál)
epizoda #80 | vyšlo | délka | poslechů | permalink | mp3
Do dalšího speciálního a plně anglického dílu si Giuliano Giannetti z Revolt.bi pozval Serge Gershkoviche – autora knihy Data Modeling with Snowflake. A vy uslyšíte právě o data modelingu nebo třeba o Sergeově přechodu z data architekta na pozici data konzultanta. Příjemný poslech!
Strojový přepis
Jirka Vicherek (00:00:05): Dobrý den, moje jméno je Jirka Vicherek a vítám vás u dalšího dílu DataTalku. Tenhle díl je zase speciální. Je to totiž druhý díl, který vznikl ve spolupráci se firmou Revolt.BI. Je to druhý díl na našem kanále, který je kompletně v angličtině. A v tomhle díle si Giuliano Giannetti, zakladatel a CEO Revolt.BI, pozval jako hosta Serge Gerškoviče, kterého můžete znát jako autora knihy Data Modeling with Snowflake.
A právě o data modelingu, snowflakeu, ale i třeba SAPu nebo přechodu Serge z pozice datového architekta na datového konzultanta a uznávaného světového autora se Gigi se Sergem v tomhle díle baví. Tak vám přeji krásný poslech.
Serge Gershkovich (00:01:17): It is my pleasure to welcome here Serge Gershkovich. I hope I pronounced your name correctly. Spot on. Serge is the author of the book Data Modeling with Snowflake. It is all the rage, the latest, the last weeks.
Serge originally worked with SAP before meeting Snowflake and never looking back ever since. So Serge, I was actually reading your book and when I was reading that I was like, hey, why this book hasn't been when I was starting my career because I found it like as a quite useful summarization of all that is there to know about modeling. So what actually made you to write it?
Jirka Vicherek (00:01:56): What got me to write it was hearing those questions over and over. The same questions that you're saying I never had, I wish I knew, I wish I had a summary. I, in my present role as product success leader at SQL DBM, SQL DBM is a data modeling tool. It's an online data modeling tool. So the customers that we Serge are data architects, data engineers, and I am in a privileged position that I get to meet a lot of them.
Almost everyone who ends up talking through our technical side and evaluating the tool at some point meets with either myself or another solutions engineer. So I hear it's kind of this repeated cycle of accelerated cycle of I hear the pain points over and over. It's not like I'm just working at one end client or even a consultant that might see multiple clients but still spend a couple of months in each engagement. So I got a repeated theme of, yeah, we're hearing the word data modeling, but we're not doing data modeling. We're not even really sure what it is, but we're thinking a tool might help us.
And variations of that theme of, okay, we got a tool. Do you recommend Data Vault or Star Schema? So I realized that many people were just interested. They realized there was a gap in their knowledge. They just didn't know how to plug the gap.
And some went straight out and asked, can you recommend any resources on data modeling? And it's almost like, sure, there's a whole... You can do in data modeling, but that's probably not what you're looking for. You need something practical to get up and running. And there's plenty of text and materials and courses that would fill that job.
And going through them, sometimes, especially when you're younger, you're coming out of school in general, you can't really see the forest for the trees. The technical material that you're given, you make the most of it.
Serge Gershkovich (00:04:03): To be honest, what I'm seeing, because that's my field of expertise, we implement data models for big corporations, but what is astonishing to me is that I often see even people working within the field for 20 years coming to a transition and they just don't know how to do it, how to implement a new warehouse, how to implement a new model or a new database. And just because the simple fact that they were always in an environment where it was set somehow and they never been through the experience to actually architecting it by themselves. And what I'm seeing that it's quite astonishing how difficult is the expertise in these areas because... There could be a person that knows how to do data modeling, but for instance, doesn't know how to manage the team or doesn't know how to implement use cases specific for a certain type of industry. So even though like we're practicing this all in all of like years around, well, still every people person that I met is missing some specific piece of knowledge.
And referring to like traditional theory is not enough, right? Because as you mentioned, it will not tell you how to do it. It will tell you maybe what are the concepts you can choose between, but not the actual choice that you should make. And this is something that I found really interesting in your book because it was really written in particular. This is what you should do when this certain situation comes upon.
Yeah.
Jirka Vicherek (00:05:45): In the biggest... Hurtle that I came across in technical material is usually it's either too academic that the author is giving you theory without much implementation or it's the other one, it's the recipe book of here's how to write an aggregation, here's how to write a window function. Also nothing around the fact that a window function is memory intensive. Jirka Vicherek What I realized was we need to make it, it's almost like you can't even really separate it. That's why the book is kind of written, it kind of repeats over and over, but it gets more and more technical because before you can get into the nitty-gritty of how to, let's say, load a type 2 dimension, you need to understand what type 2 is, what are the other types, what's the dimension to begin with.
And it's a lot to throw at somebody if you were just to dedicate one entire chapter and nothing else on type two dimensions. Because it's like so much information before you even realize why you're reading it in the first place. And when I first said I'm going to write a book on modeling with snowflake, everyone, the first thing everyone said was you're crazy. Why snowflake? Modeling is technology agnostic.
You're limiting your readership, you're limiting your audience. And they're right, modeling is technology agnostic, the foundation of it at least. But once you get past the foundation, it's like, sure, I can explain a type 2 dimension. It's a dimension and it has two extra columns, valid from, valid to. Off you go.
Go ahead, make one. Implement it.
Serge Gershkovich (00:07:35): And so now, how do I query that?
Jirka Vicherek (00:07:37): Yeah. And... So I thought, it's true. If you make a book with the word snowflake on the title, Databricks and Google BigQuery audiences are not likely to pick it up. But first of all, it was tapping into my area of expertise, which is snowflake.
But most importantly, it was... Jirka Vicherek or BigQuery, the end result isn't going to look too much different than what I'm describing. Sure, you might tap into different technical accelerators or architectural fundamentals, but...
Serge Gershkovich (00:08:24): I would actually disagree because I actually started reading the book because it was recommended to me by a person that works in BigQuery. And the thing that was quite interesting for me also was to see what kind of features you use about the technology because me myself, I mean, I don't use all the features of Snowflake, right? and your usage of tasks and other things and the particular implementation of the pipeline were quite interesting for me because it was a different approach to architecture that I was used to. So I would tend to disagree that doing this in particular was a bad decision and I think we've all seen that. How many copies of the books were sold, by the way?
Good question.
Jirka Vicherek (00:09:13): You know, I don't even have the number off the top of my head. It's nearing the thousands, thousand something copies, which I don't know if that's a lot or a little. This is my first book and it's only been out for a few months. So we'll see where it goes.
Serge Gershkovich (00:09:29): We'll see where it goes. So, you also mentioned, okay, you choose Snowflake, but originally you were working with SAP, right?
Jirka Vicherek (00:09:39): Yes, I started my career kind of meandered into SAP. I started on... on the HR technology side, HRIT. And so it was all either middleware or just SQL and kind of front-end reporting tools. And SAP is famous for their, they have many modules, but HR is one of them, ECC.
And whatever you're using, they end up in their warehouse, which is SAP BW. Back in those days, it was still BW, 3.5, 7.5, 7.4, 7.5 evolving. And eventually HANA came along. But in SAP, because they limit you to their ecosystem of anything, ETL, dashboarding, it has to be SAP. You end up becoming a little bit of a jack-of-all-trades.
Even if you're on the warehouse side, you're still doing the business objects reporting or BEX reporting or you're loading the data with their ETL tool. why I the journey kind of why how I came into the snowflake realm was it ties into even how the book came about in the sense that when you're working with SAP not only do you become a generalist there's obviously specialists in the SAP world but most people kind of know how to do a little bit of everything But the most prized skill set in SAP is the troubleshooting. It's not even the designing, the architecting. It's when something goes wrong, being able to recognize an error and say, oh, if you go to transaction XYZ123 and click this verbose option, then you can find this in the log and then you can go to this other transaction and fix it and turn it off. And that is not conducive to delivering value to the end user.
This is just finicky work that's preventing you from actually delivering what you've signed up to do.
Serge Gershkovich (00:11:46): You know, I was always wondering if SAP is so successful because it's complex or it's so successful because it's so complex that has a lot of consultants that can live out of it.
Jirka Vicherek (00:12:00): It's successful because...
Serge Gershkovich (00:12:03): Jirka Vicherek
Jirka Vicherek (00:12:05): Try, once SAP has been implemented, try to even touch it with another tool or even by hand and see what kind of fines and penalties come your way. So it's very much a lock-in in terms of not just that you've paid a lot, now you have to use it, but also the fact that if you try to connect to SAP with anything else, you're going to be in an illegal headache. Well, million-dollar fines, no exaggeration.
Serge Gershkovich (00:12:33): It's funny, I always say that you can find out who runs the company by the discovery session that you do with it. Because if you have a technological company, usually the discovery is about, hey, how can I hack this to make it work, right? When you have a sales-driven company, then usually the discovery is, what else should I buy to make this work? While when you have a legally driven company, then it's like, what the hell shouldn't I be doing so you don't find me? And this is like always what I felt about SAP, but I think that lately they quite open up.
There's like this new policy that you can legally copy out of stuff. I think it's called an indirect approach or something like that, which enables you to make actually dead copies of the data and then use it freely without infringing any license. Maybe.
Jirka Vicherek (00:13:29): When I said that I haven't looked back, I meant that All right.
Serge Gershkovich (00:13:35): And so, okay, so you found out that this approach to data is detrimental to business value. And so what happened?
Jirka Vicherek (00:13:46): What happened was I was working at an end client where they were in the hotel B2B space and they acquired some of their competitors, two at once. So we had a lot of data consolidation and integration to do, even the systems that we now had three copies of everything. And so we basically had to choose between our, since we were, it was our main company that bought the competitors, our BI team was kind of left in charge of making the decision. So we had our BW HANA implementation, we inherited a SQL server and we inherited a Snowflake. So SQL Server was easy.
We said, okay, we'll just drag that in, ETL it, and start architecting. Snowflake, we kind of just thought the same. We thought Snowflake is just SQL in the cloud. And we began the model on SAP BW as all our whole in-house team were expert. We had consultants who were SAP experts.
We knew what we were doing. We began building and we would just connect to these other systems just to do a little kind of data cleanup before we started the ETL process. And a lot of what we, once we kind of had the whole pipeline going, we saw that to ETL end-to-end on SAP, no exaggeration, about a month of loading. So we scheduled these jobs one after the other, let's just keep them running and it's an on-premise system, why not? Doesn't cost anything.
And And every time we realized, oh, this data is incorrect, okay, back to the beginning. And while we're doing that, we thought, okay, before extracting the snowflake data, maybe we can just fix it up there. And when we did, it took nothing. And then we thought, okay, well, maybe we can also do this next step of transforming it a little bit. Nothing.
And then we thought, wait a minute, what if we went the other way around? And by the time... I mean, I'll get to the tech side, which was this month-long process took, no exaggeration, two and a half hours on SAP, on Snowflake, sorry, what took a month on SAP. And the reason isn't anything, you might argue, oh, you're just doing it the stupid way. No.
SAP BW is a bit of a black box, especially if you're touching the database directly in HANA, maybe that's slightly different, but then you miss out on all of the service layer. Whereas with BW, everything is... You're not even seeing the star schema that's being generated under the hood. You're just dragging around concepts like info objects, ODS. The system's taking care of all of the surrogate keys, the texts, etc.
But all of this has an overhead. So when all you're really doing is bringing source data, maybe you're not ready to start generating surrogate keys and data integrity and all of these things. You just want to load it. But There's no way around it. It only works one way.
If you're doing it by hand, you decide where is the data cleanup going to take place? Where is the referential integrity going to be enforced? Because obviously the answer is not, it should not be everywhere all the time.
Serge Gershkovich (00:17:19): You know, for me it's like, it's funny because I came from a company, Kabula, that started using snowflake in 2015. I think they were like public, like, I don't know, couple of months, right? And I remember we started doing that because we were tired of scaling databases on Redshift and this kind of, and MySQL databases that was originally, they were doing analysis on top of a huge MySQL server that was a multi-tenant where all the client's data was brought to and it was a nightmare and it was slow as hell. And yeah, all the problems kind of dissolved and we also never looked back since. But still it feels to me that, you know, like the business underestimates the cost of the technical stuff and the missed opportunity they have.
by not using such technologies, right? Because in their terms, as you mentioned, like running an ETL process for a month is free. Well, not really, right? Because the business doesn't have their data, the team is paid by doing stuff that doesn't have any innate value, like refactoring and maintenance of infrastructure. But it's hard to calculate, so it always felt short when you see a simple proposition.
Yes, you can pay, I don't know, a couple of dollars per hour, or you can have it free back on some capex, some investment, right?
Jirka Vicherek (00:18:54): Right. So that's how I landed in the Snowflake world. But what really transformed my career was, once we'd been on Snowflake for about a year, once I got a little bit of a... a better understanding of what it was all about. I thought I have not only some hindsight, but also a very privileged position, because this was around 2017-18, where Snowflake was just getting started in terms of their accelerated growth.
Not a lot of people were migrating away from SAP in general. This is a slow process even today. And I thought after almost a decade and a half spent in SAP ecosystem, I finally have a voice and something to say. And I think there will be people interested in listening to this because when you're a SAP developer, consultant, and you're fighting these daily grinds of why doesn't this work? Why am I getting this error?
Which transaction do I need to go to to enable this? You don't feel hurt when you raise a ticket and it goes through some bureaucratic process. First, we don't want to listen to you. Then we're going to blame you because you don't have the latest patch. Once you get the latest patch and you prove that it's still broken, then maybe we'll take a look.
I thought, you know what? This is my chance. I'm not going to attack SAP in any way. I'm just going to come at this from a purely subjective point of view of This was the situation at the company I worked in. This is why we made the decisions we made.
And this is how it's worked out for us. And I knew that there would be a lot of both the evangelists, the fanboys, the everybody. Jirka Poured a lot of work into that article. The article was... Vicherek from SAP to Snowflake and how we did and why we did it.
Just explaining the use case and really no judgment in favor or against either platform. And that really today is still my most read article that I've written because... It really showed people that, first of all, there is a way, there is an alternative whether you decide to go that route or not, but at least know the advantages and pros and cons of each approach. And also because I kind of knew that it wouldn't just be received with open arms, I knew that it would be attacked any hole I left, which is why I tried to just make it as unbiased and as evidence-based as possible. And that kind of put me on the radar as a writer.
It's like, that was the first article I seriously authored, but it was also something that showed that I really put a lot of thought into this. And in that case, it just so happened that SQL DBM was looking for a technical writer. And it's surprisingly hard to find a technical writer that actually wants to write and actually has the background in the thing they're writing about. And we just found each other at a very good place at both of our journeys. I was looking to maybe take a little bit of a pivot in my career and do some, not necessarily evangelism, but kind of, this is why I invented my role of product success lead, because it's not a product evangelist.
It's not product manager, but it's still a customer-facing role that just has much more interaction with the product team. So it's something that's communicating and evangelizing data modeling in general, but also helping evolve the tool that makes data modeling. So agile and efficient.
Serge Gershkovich (00:23:04): What sounds interesting for me, because even Bill Inmon was saying that basically his career started when he, despite something that was used to do within the company, he went and actually wrote the book or an article. that made him public. So he kind of escaped the grasp of the situation he was in. You mentioned quite a similar thing myself as well. I kind of kick off to my company by writing an article that had several thousand reads a couple of years ago.
I think it's really a topic because it's hard to start doing something different from the position that the person that pays you gives you orders or tickets. And you might think that you need to do something different about it. You know how to do something different about it, but you have no voice in it. And I think this is something that is quite common in service organizations as BI teams are. So, and you actually had to also quit the company right afterwards.
So you were forced to go elsewhere and start a completely new career.
Jirka Vicherek (00:24:23): I think that you made a very interesting observation that writing kind of kicked off many of our careers, and it's because many people think of writing as just putting information out there, of preaching to a mass audience. But in reality, what you're really doing is you're putting your ideas into the arena of public discourse. So there's plenty of bad books, there's plenty of bad articles, and just because you wrote something doesn't mean that people are going to pick up and share it and praise it. Your ideas have to speak for themselves, and because they're out there, an article is online, you can't just take it down, people will have read it, people will have seen it, they would have tweeted it, book even less so. It's something that is a very brave thing to put forward because you're essentially saying, you know, these are my ideas, go ahead and attack them all you like.
I'll defend them from any criticism and I'll accept where the ideas are weak, I'll build on them. But in terms of... Where do we go from here? I didn't write this as a self-destruct on my career and my present company because, like I said, I didn't make any judgments in that article. I didn't go against anything that my bosses or even my company policy said.
In fact, I checked with them. They said, take our name out of it and write whatever you want. So it didn't jeopardize my position in any way. What it did was really just gave me a voice of, like you said, when you're being passed tickets, there's really no one to complain to. And once you start entering this arena of debate and discourse, you will grow as a person, as a professional, as a thinker.
That's the challenge I thought when I decided to leave and walk away from a purely technical data architecture role, which was the position I had when I wrote that article. It was, there was a lot of risk there in terms of, like I said, pivoting a little bit of from being purely hands-on to really going outside of my comfort zone.
Serge Gershkovich (00:27:00): So, and that was that you, by writing an article, you basically became a person with an opinion and that changed your career, right?
Jirka Vicherek (00:27:09): I would say I became a person with a voice. Opinion, I actually give very few opinions, if you noticed, in the book and in my articles in general. I participate in very few of these LinkedIn debates of do it this way, do it the other way, Inman versus Kimball versus Datavall. CIO, CDO, CTO, who does ROT. There's just a lot of noise and...
When you see these opinions, they usually just present some straw man or version of the opposing side and say, well, if we can caricature them to make them look ridiculous, we can make a point for this. But just think about it, if that was true, wouldn't everybody be doing it the right way, according to you?
Serge Gershkovich (00:28:03): Of course, but still, I mean... I think every one of us has a go-to approach how to build a data stack.
Jirka Vicherek (00:28:11): Right. Obviously, I have my opinion on would I rather use Snowflake versus SAP, but what I'm mostly interested in is understanding the fundamentals.
Jirka Vicherek (00:28:28): ... Dictate the approach. So there's obviously going to be a case made for...
Serge Gershkovich (00:28:43): So what are the first questions that you ask to qualify? What kind of approach to use? I mean, because if I understand correctly, you're advising right now companies how to basically build data models for their data warehouses. So how do you do it?
Jirka Vicherek (00:29:04): I don't do a lot of advising so much as kind of just fielding questions and misconceptions they might have. Again, I don't do consulting as such. My main energy is focused on understanding the pain points that customers have in data modeling and building a tool that facilitates them working with whatever methodology or approach they end up going with. But when I do have those conversations, I always start with not from a technical perspective, but just asking them, okay, what are you struggling with? Tell me, is it data quality?
Is it requirements? Are you too slow? Is there a trust lost between the data teams? Is it siloing? Because the...
At least in my sample set, these are people that either are coming from legacy data modeling tools that were all desktop based and very hard to share and make current in terms of what you're presenting. Jirka As they say, if you're not data modeling, that's still a data model. Vicherek
Jirka Vicherek (00:30:37): If you recall my book, it starts with a business-focused approach. So it just introduces data modeling as a simplification and then it goes right into a data model is a An abstraction of the business processes that a company operates. And it's not even an abstraction that is data-centric. It is reality-centric. It talks about what portion of reality does the data capture and then are we capturing that data correctly.
And in order to know that, these are not technical questions that you can qualitatively analyze. The only way to know that is to take those, put them in front of some subject matter experts, a domain expert, business expert, and ask them... What I've built here, if I can simplify this to something not very technical, just a concept, does this make sense with your day-to-day when you're out in the field and you're making contracts, signing customers, making sales? Does it look like this? Does the generated data have these attributes?
Which one of those attributes are most important? Are we capturing everything that you set out to accomplish in your day-to-day? And that really gets the conversation going of, okay, now that we've understood the concepts, can we...
Serge Gershkovich (00:32:01): You know, what I actually find funny is you're basically saying, hey, if you want to know what kind of data model you need to build, you need to ask the business, right? Yeah, you wrote a book for technicians to go to find answers to that because still it seems that it's really hard for us technical people to actually go and ask the business the right questions or maybe find the right language to get on the same terms with them.
Jirka Vicherek (00:32:29): In a way, yes. I think notoriously and comically data people are not great at talking to other people in general. But if this book serves as some kind of license to go ahead and schedule meetings with the business teams, then I'm all for it. But this is also, in the very beginning of the book, I try to focus on the fact that... when people think data model even technical people a lot of times will just go straight to an ERD diagram most often physical but that's just the tip of the iceberg that's the physical data model that represents what is in the database when you're really talking about the model as a whole there's a whole set of conventions whether visual or verbal that condense a lot of information into something very simple that if I say this is a primary key that's really two words that convey a lot of information to even someone non-technical or this is an identifier if you want to make it one word it says what is the unique row that one piece of data represents or what is the minimum cardinality in this table so What makes this data unique?
And there's all sorts of, you know, if you're technical, right off the bat, there's a bunch of queries that pop into your head of how do you check it? How do you validate it? Okay, now I know what to join on. But we just said one word and we've already communicated a lot. But if you take, if you really look at what's this whole set of visual and technical semantics, you realize they're actually not that many and they're not that difficult.
They're not something that you need to train the data team or the business team rather on. If you just stick to keeping it simple for everyone, they'll understand you when you bring a diagram that has a box, another box and a line. And they'll understand that these are two entities and they're connected by a relationship. You don't have to get into anything super technical from the database side. And at that level, it's very easy to communicate even between technical and non-technical people.
In fact, I think that is the bridge of if you kind of remind people of on one side, don't come with all your mumbo jumbo and expect to impress anyone because you're just going to lose them. And on the business side, you are now able to communicate requirements in a way that a technical person will be able to kind of repeat back to you Jirka like you Vicherek were crazy and you, not necessarily crazy, but just a little bit of derision. Not technical, so what are you doing trying to describe the model to me?
Serge Gershkovich (00:35:26): Uh-uh. I was quite surprised the length that you went through in the book to describe all the different data models or let's say the diagrams that are used to describe data models because of course in my practice... Business people have no clue about a physical model, conceptual model or what else we can describe by using a diagram. But of course it's vital for us to, because we need to make the business understand that they cannot receive a certain set of analysis if the data aren't there. Like for instance, if you have not a connection between products and invoices, you cannot really sell how these products are sold, right?
And the business needs to understand that and make this understandable for them. It can be really hard and often like... You know, when we start projects, it's more like a marital discussion in the beginning when I need to have technical people and business people come to one place and discuss about the state of the data. And they just cannot agree because they have a completely different experience of what they're seeing. And usually the revelation, like what's happening there, it's like so eyes opening.
That's the whole worth of the project.
Jirka Vicherek (00:36:46): A little bit. And I think humans in general communicate or understand very well in terms of visualization. There's only so many words that you can process at a time to the point where you say, hold on, just draw me a picture and I'll get it. And luckily modeling has a component, a visual component to it that... when we talk about this you're referring to the conceptual layer and the logical models before the physical this is again if you're doing modeling the right way which is bottom up of defining the very simple before you get to the advanced it's like before you start talking about indexes and clusters have you even defined what the thing is the attributes of the thing you don't need to be technical to speak to a subject matter expert on it and iron those out and validate before you start building and when you go the other way around which again we have to face reality a lot of people have ended up where they are One way or another, whether they had a null model or a crappy model, they have something built in the physical database.
And it takes literally 30 seconds to reverse engineer when you take the structure of a physical database and you visualize it on a relational diagram. And you can go from DDL code to a picture in no time at all. But does it tell you anything extra or even confirm that this is the right version of reality? So in philosophy there is the idea of is versus ought. Tohlejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se, kdyžtejte se.
I didn't see any beer or ale. And they're not wrong, but they're very far from right because it's their reality. It's what they saw. That doesn't reflect the reality of the country in question.
Serge Gershkovich (00:39:09): I always explain this on meteorological data because basically data is a convention that needs to be understood between people that are reading the data and people that are recording the data. The reason why we use the term record is because it's a record of data. And, of course, if you don't have any methodology on meteorological data, well, OK, if you are trying to get the average temperature, but you record once in the night, second time in the day, of course, you're going to get skewed results. If you are going to record once, I don't know, in a plane and once on a mountain... that's the same stuff, right?
So the recording needs to be consistent and in order to be consistent there should be like an accepted process within the organization that aims to get this. And of course I see this lost in a lot of technical discussions and... Because it cannot be described, right? You with the book and I guess anyone that would try is trying to do a generalization, but all these businesses are different and one cannot write a book about a particular business.
Jirka Vicherek (00:40:16): Exactly. Even the examples in the book are, like you said, I threw in some tasks, some streams. and a lot of them are there just to kind of not take away from the main point of even if I'm doing it in the context of loading a fact table or something it's just a little glimpse of what the art of the possible so even though the main thing is you know the The reverse balance fact table, but here's a way to load it that maybe you've never thought about. That's not really central to the point, but can give you an idea for another thing that you might have been thinking about. But in terms of coming back to introducing the core concepts of conceptual models and logical models, they're not...
They're not busy work. They're not just extra requirements of we don't have time for that. If done properly, they save you time. But it's very hard objectively if you say what's faster to just go off and build or think before building and then build. Obviously the first is on paper at least going to be much more performant.
But, you know, maybe Agile is to blame, I don't know. But obviously, I think we, in the debate of fast versus formal, fast one, and... I don't know, I like to think in terms of analogies and the analogy that comes to mind in this case is always like you're getting ready for a hike and you say, oh, I don't have time for shoes, I'm just going to go. And once you get going, you can't really go that fast, you start getting blisters and you never stop and think, maybe I should have put on shoes. You think, how do I treat blisters?
Is there a band-aid? Is there a wrap? And modeling is very much a... Blueprint that kind of grows with the process of architecture. It then becomes the map and the self-service document on how to navigate what you've built.
But only if you do it right. So back to the whole is versus ought. If you reverse engineer a physical diagram, it's very hard to argue that what you have shouldn't be the way it is, because when you talk about it on paper, you say this is the customer table, this is the sales transactions. And it's not really capturing the nuance of which attributes should be or have not been represented. It's not capturing the nuance of what is the cardinality and the many to many, one to many relationships.
Are those captured accurately? There's a lot of things that just in the conceptual and physical modes of modeling are not captured. Sorry. that if you were doing it bottom up, you would have already spoken to the business and confirmed them. If you're going top down, you're not complete until you've really covered all of those bases and made sure that once you've fleshed out what is built, confirms to what ought to have been built.
And that's where I think most of the pain points happen in terms of Once it's wrong, it's very difficult. Even if it's one piece of just one dimension out of ten that's not quite there, it's going to tie into other dimensions once you start querying it, once you start building the downstream reports. You're gonna start building little hacks to fix what should have been because you're gonna get data that doesn't conform to your expectations, values, cardinalities. You're gonna start trying to wedge something into a square peg, into a round hole. I think this is like a
Serge Gershkovich (00:44:30): classical beginner's mistake, trying to fix the data for the business instead of fixing the process itself, right? But again, it's just because it's usually easier for the technical person to make an additional query and maybe fix, I don't know, some wrong data that he's getting or expecting instead of going to the business department and tell them that they should record, change the process in the priority system. But ultimately, it leads exactly to the trap that you're saying, right? I was thinking, what about technology? Because, you know, you mentioned a bit about how these models should be built and what I'm seeing, like a lot of black boxes are rising because efficiently is what we're doing, right?
We're trying to automatize our doing in data, we're trying to do automatic modeling, automatic reporting, etc., etc. But it feels to me sometimes that a lot of understanding is lost because if you would start today with Snowflake, you wouldn't even know what an index is and maybe you wouldn't even know what a partition is because you'd never need it. So do you think this will inflict on our practice like in long term? Yeah, I know it will.
Jirka Vicherek (00:45:51): And I'll make a confession. It should be obvious kind of from my background, but there's objects that you work with and some of those objects are parallels to existing modeling techniques like surrogate keys, like star schemas. and but you're never taught that you're just taught like this is this object and this is how it behaves and this is how it works so you're really just kind of taught second order implementation of a first order principle so I spent literally a good half of my career not thinking about data modeling at all or thinking about it from like one level removed in terms of how does it behave in this specific system under these specific conditions and not thinking or not just not thinking like I wasn't doing my job it wouldn't even been helpful to think like you said there's no indexes on snowflake so will that knowledge help you in your day-to-day if all you do is is work on snowflake I think in a non-intuitive sense, yes, because you understand the limitations. Everything has a pro and con, and an index has the pro of being able to speed up queries and point a needle in a haystack searches, but it's going to slow down loading because you'd have to update the index every time you did an operation. So...
The fundamentals are, I think, fundamental for that reason because they explain the tools you have to work with and even those that don't will inform the performance and the limitations of the technology that you're working on. But most importantly, it's... is showing you what you don't know. So in my case, if you're all day head down in BW technical manuals, you're getting smarter at BW, but you're still not learning the fundamentals. And it's less about the general concepts and more about, oh, here's a new...
Here's a new update release, a release candidate. What are the new features? What's now possible? And yeah, that's going to help you in your day-to-day, but you're still not understanding what it might have looked like.
Serge Gershkovich (00:48:14): And the technological landscape, of course, is changing so quickly that you also may find that you are riding a dead horse, as probably many people already experience with some random database that they picked up, I don't know, in the 90s or the early 2000s. I was wondering, maybe this is a good opportunity to wrap it up, because your book is really a lot about the fundamentals, but probably the listeners to this podcast wouldn't know. So what would you say are the basics that you would tell a person that is starting with the track, with the practice, to take a look a bit and learn before starting implementing?
Jirka Vicherek (00:49:04): uh not to you know obviously my opinion is going to be a bit biased here and not just because it's the book I wrote but as I said it's the book I I wish I had so I was writing it for the me of You know, even though this kind of spanned several decades of my career, the me who was starting out in data in general, the me who was starting out on Snowflake as a data platform and giving that young me the basics in the most condensed version and most understandable form possible of... How do I take this forward and how can I leverage this to make the most efficient designs for these most encountered situations, but also learn how I can go a step further and adapt them to the age cases by, again, understanding the first principles. So to make this not all about me. I would say don't expect to learn by osmosis. As you just said, whatever database you've started on, it doesn't mean that you understand exactly why things were built the way they are.
Maybe you were exposed to something that was less optimal and it's just informed your thinking from that point on. Go back to the literature, and whether that's specific to the platform or the database or databases that you're using day to day, definitely go back to the fundamentals of data. Read the Hinmans and the Kimbels and understand... Because they're the ones who came up with these concepts that we throw around and argue about. So understand exactly the context in which they proposed them before you start dissecting and jumping into the debate of which side would you rather fall on.
And yeah, understand the fundamentals of the craft, but understand the fundamentals also of the technology, because it's going to inform which choices you're able to make and which ones you're not. And the difference is night and day in terms of... Konec, konec, konec, konec, konec. Konec, konec,
Serge Gershkovich (00:51:23): konec.
Jirka Vicherek (00:51:27): a Konec, těžká se vytvoření. konec. Konec, konec. Konec, konec. and performance-wise versus everything, the whole toolkit of what's available at your fingertips.
Serge Gershkovich (00:51:45): Yeah, of course it's for me interesting having people spending eight hours a day of their life doing something and trying to learn by like... from people that learn by someone, that they learn by someone, et cetera, et cetera, instead of picking the very books of the inventors, the best ones that could tell us. Okay, Serge, it was really a pleasure to have you here. So thank you for being on this podcast and I hope to see you soon.
Jirka Vicherek (00:52:21): Thank you. It's been an absolute pleasure and thanks for inviting me. It's been great. A to je všechno. Díky, že jste doposlouchali až sem.
Díky taky našim partnerům. BigHubu. Intexu. Sazce. Bystreetu.
Colours of Data. Revolt.BI. GoodData. Keboole. eMarku.
Karl Data Company. A DataMindum. Pokud Vás zajímá víc, navštivte naše stránky datatalk.cz a přihlašte se k odběru našeho newsletteru.