Skip to content
DBAle 18: The beer and data Hybrid episode artwork

Jan 31, 2020 56 min

DBAle 18: The beer and data Hybrid

from DBAle Hosted by Redgate Software

Kicking off the year dry January style, our sober duo sample a Ship Full of alcohol-free beer. In a DBAle exclusive, Chris and Chris introduce Redgate's new 'Hybrid Model' workflow. Offering the best of both worlds by combining state-based Source Control with automation by migration scripts, this Hybrid is a game changer. So, grab yourself a beer and tune in - cheers!

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

DBAle 18: The beer and data Hybrid

0:00 56:57
of matches

Transcript Auto-generated, may contain errors

Hello there everybody and welcome back to the most exciting, the most fabulous, the most daring of all podcasts. Really? That's what we're doing with now? No, it's DBL!

Yay! It's like the worst tagline I've ever heard. I mean, they're worse. No one's ever gonna remember that.

I mean, we could stick to the podcast that's about data and beer, but let's get a bit dated really. No, I like it. It's factual. Okay, well, as long as we're being to the point, welcome back everyone to Redgate's DBL with myself, Chris.

Chris. Oh. Do it. It's also me, Chris.

Yay! There are two of us. That's our thing. It's funny because we're both called Chris.

Yay! We're also both love beer and other things. Yep. Like, what else do you like, Chris?

Oh, no, I don't know. I don't really actually have any hobbies. Literally, all I do is blog and drink beer. That'd work.

And work, I love work. Oh, there you go. Cool. We're both happy now.

So, welcome to the January edition of DBL. Now, unfortunately, and as I did- JDPL. JDPL. Stop.

Oh, welcome back to DBL. The January edition of 2020. Where did that go? 2020.

Yeah. It's- I can't even wrap my head. There are adults who were born in 2002. Just to wrap your head around that one for a second.

That was an amazing effect as I thought it would be. Oh. I don't do amazing facts. There were adults born in 2010.

That's very specific. Yeah, but there were hours born in 2002. I remember, like, ringing in the new year when I was nine, like, seeing the fireworks go for a new millennium. Next year, you'll be an adult too.

We- I put it off every single year. So, today, on this particular episode, we have got, well, a bumper crop for you. In fact, we have an elongated beer section. And the very reason for this is that- Wait, are you doing dry January?

Not really. Oh, so it's just me. Yeah. So I am doing dry January, and last year we did dry January, and we had, I think, an alcohol-free beer.

But this year, I'm doing dry January, and we have a selection of beers. More on that in just a moment. What we'll then also be covering is the brand new thing, the up-and-coming thing from- Quick, Chris, think of a topic. Oh, no.

We'll be covering the latest- We'll be covering the latest stuff from Redgate's product development team. We're going to be talking about the hybrid model. Now, we don't mean the hybrid DBA, of course. Big shout-out to our friend Hamish Watson.

If you are listening, we love you. But we'll be talking about something a little bit special. And then, of course, we'll follow that up with the- As always, the new- I thought you were going to do it with new- No. You're all on your own list, aren't you?

The news. The news. Can you do as monotonic as possible? The news.

I don't think that's how you say that word monotonic. I think that means something else. Monotonic? Monotonic just means there's not enough gin in my glass.

Hey! Or gradually increasing. Yeah, why not? Hashtag, that's dope.

The news. Anyway, so first things first. Naturally, we're going to go to the beer. Now, like I said, I'm doing dry January.

Sad, but also it's been quite liberating. And for anyone out there also doing dry January, I applaud you. I found that I was getting to this point where I would come home and it didn't really matter what day it was. Probably a weekday if I was coming home from work.

But I was opening the fridge and just out of sheer habit. Opening the fridge and taking out a beer. And just opening it up and then doing some cooking and whatever was required of me. But the alcohol just kind of made its way.

It was pervasive with my life. And I feel like I became a little bit dependent on it. So I think doing dry January has been really good for me. Chris, this isn't a therapist challenge.

It all started when I was born. No. So we're here to drink beer and to make people happy, not to ease your problems. That's fair.

But in an effort... We're here all day. We're here all day, folks, all day. Now, in an effort to help some of you out there with your dry Januarys, or indeed if you're deciding to go alcohol-free permanently, which is absolutely a great thing to do, or whether you're just looking to punctuate those weekend beers with some more alcohol-free lovelies.

Now, alcohol-free beer gets a very bad rap, wouldn't you agree? No. Oh, I think it's... It is what it is.

It's what it is. It's alcohol-free beer. I've had some that taste like very wheaty lemonade. Well, we went out for a meal recently with our respective wives.

And we had... I should point out, we're not endorsed by any of these companies. But we did end up having an alcohol-free cobra. Do you remember what it was that Rachel said it tasted like?

Wheaty lemonade. Was it wheaty lemonade? It was very, very strange indeed. It definitely had that kind of lemonade texture to it, and it would taste.

So this time we've actually got... It's like someone made like a beer squash, and then put carbonated water in it. Ooh. For anyone listening who doesn't have what we call in the UK, squash, I guess the closest thing would be cordial.

Cordial. Yeah. So today we've got a selection. Now, we don't actually have mine and Chris's favour at all.

How do we forget that? People don't have squash in other countries. Well, they just drink water like normal regular human beings. Yeah, but it's also...

I don't know. It's like when you find out that baked beans aren't really that much of a thing. Oh, but baked beans are good. They're so squash.

Anyone listening who doesn't know what baked beans are, Google baked beans because they are great, and you can get some really good homemade recipes for them as well using like butter beans. Yeah, but we've got a lot of Americans who are like... Oh, I bet you know what baked beans are. Like, what are you on about?

Oh yeah, fair enough. It's not patronising us. Oh. We do them better than you do.

Bad, Chris. Anyway, we've got a selection of five beers. Now, we don't have mine and Chris's favourite alcohol-free beer, which is, of course, Heinigan. Heinigan.

Heinigan make the most incredible zero percent beer, and it's really tasty. I have it at home. I'm also a big fan of... Oh yeah, this one isn't an episode for those who like your small craft breweries.

This is very much a battle of the Titans. Yeah, we've got some battle of the Titans going on here. So what we do have is we have... End on that one.

End on that one. End on that one. End on that one. End on that one.

Okay, I'll end on that one. So we do have one craft brewer. So we'll see how that goes. I'm sure, somewhere down the line, they're ultimately owned by...

By some big conglomerate. Yeah. Actually, it turns out the same company that makes this beer makes also toothpaste, and cardigans, and... Thousands.

...sub boards, and Taiwanese. Oh, DBL Whiskey Edition. We can do it. I'm pretty sure I know a few people who would listen if we did DBL Whiskey.

Shout out to SQL Mickey in any case. Ramba. Ramba. Stop.

Anyway, so we've got SamiGel. Yep. We have Becs Blue. Yep.

We have Karlsberg, Nordic Pilsner, alcohol-free, and Birramaretti Zero, and then a Mystery Fifth Beer to go as well. Oh, what should we start with, Chris? I'm always a fan of free beer, so let's go with the alcohol-free SamiGel. SamiGel, all right, we'll start from right to left.

Okay, so here we go. Now, we're not just going to be slamming down these cans. One can of each, and we're going to be sharing them. This is going to be the most amount of beer we've ever drunk in a single episode.

Without getting absolutely hammered. What did you do today? Well, I drank five beers at work. Oh, I'm so saying that when I go home.

Right, okay, so first things first. Color. Color looks a little bit washed out. It looks a little bit like a Shandy.

So this is the SamiGel. Smells a lot like a Shandy. It smells a lot like a Shandy. So almost like a lemonade-y kind of beer.

It tastes okay. Tastes a lot like a Shandy. Yeah, on the nose, there's not really anything there. There's no...

How many smell any hoppiness? There's no fruitiness. There's no... There's not really anything there.

I think someone gave me a pint of this. Someone said I just got you a really cheap vodka. I'd be drunk. You'd be a good one.

Happy's a strong one. You'd be. I wouldn't really have questioned it too much. It doesn't quite have the alcoholicness to it.

Yeah, there's definitely something in the... Something going on in the back of my mouth there. Like a bitterness. I think I'm going to have some cold.

Oh, a chew. No, there's definitely a bit of bitterness going on. I think if I went to a party, and I was going to drink an alcohol free beer, I think I could probably get away with this. Okay.

Yeah. So, okay. Let's give it a rating. So I'm going to finish it.

It does have quite a rather nice bubble to it, actually. It gives quite a nice head to it. Nice. Okay.

All right. Take one. Finish that one. I'll go with 6 out of 10.

I was about to ask you if we're out of 10. Chris is rating. 6 out of 10. I'm going to give it a...

For the record, that's just going to have alcohol free beers on it. Yes. No, we're not comparing it to real beers. That would be fair.

But I think once we start getting past like 8, if we haven't 8, then I would say probably we're getting into beer territory. Yeah. Yeah. Okay.

So I'm going to give that one a 6 also. So we've got 6 chrisces. 6 chrisces, 6 dbls, 6 something. 6 out of 10.

6 out of 10. So 6 out of 10 for the San Miguel. Well done. There we go.

That one goes aside. So the next one. The thing is there's no unit there because you've got 6 on top and 10 underneath. So they cancel each other out.

Hashtag Matt's joke. A 6 out of 10. Okay. You know what?

This is why it sucks, actually getting to do like, Oh yeah, because you proved in the other episode of TBL what a maths genius you were. Yeah. But when we did uptime, we did the 9. I thought you were about to say this is why it starts playing out with Chris.

It's like what it's like when was it I and Pi are having a fight and I says B rational and Pi says get real. That's terrible. Oh. It's like the only maths joke I know.

Yeah, that one's really bad. Right. Okay. So the next one we've got Bex Blue.

So everybody knows Bex, very popular German beer. And Bex Blue is the one that I think probably most places in the UK stock. If they have an alcohol free beer, they'll probably have Bex Blue. Yeah.

Yep. I think so. Cool. So that one's open.

Your glass, please. Missy. It's still blue. Got a good foam to it.

Yeah, very good foam to it. Okay. Or a very bad pour to it. Uh, let's go with very bad pour.

Okay. So on the color, we're getting pretty much the same. It looks almost a bit more yellow than the other one. It's very hard to describe the color and liquidity of those without referring to.

To something else. Yeah. I don't know. It definitely looks more like a kind of, almost like a washed out longer than the other one did.

Yep. Still nothing on the nose at all. There's just nothing there. I should point out that the very reason we didn't get any brew dog beers for this as well.

So it turns out only one of the, uh, brew dog alcohol free beers, because they've got hazy AF, they've got punk AF and they've got nanny state and they've got another one coming what it's called. Anyway, my best friend Russell will be able to remind me, knows every brew dog there is going. Hello, dog. It's my old friend.

My other best friend. Thank you. My non-work best friend. But yeah, apparently they contain lactose derived from milk.

Which means you and I can't have it. Yeah. Sad. Uh, anyway, that's weird.

It is weird. But in any case, I just forgot. I was going to get a sixth one. I was going to get nanny state, which I love.

That's definitely a nine out of me. Sadly, not today. This tastes remarkably of nothing. Yeah, there's nothing there.

There's a V. It's like it shared a room with an actual back. It's almost like an, uh, like an irony, almost metallic twanging to it, isn't it? That's kind of what I associate with back generally.

Yeah. I don't. Yeah, this would not keep me satisfied on a night out. If I was going out out in dry January, when someone handed me one of these, I'd probably down it and go great.

Well, I'm staying hydrated. So yeah, it's literally just thinking that I was, that's quite refreshing. Yeah, I would drink this on like a summer's day, when it's maybe, I don't know, 95 degrees Fahrenheit, which is about what, 25, 26 degrees Celsius? That might be, I don't do Fahrenheit.

I don't, I don't do Fahrenheit either, but, um, yeah. Some of the world do. Yeah, I would drink this on like a hot summer's day in the garden at like 11 a.m. Like if I was doing some gardening, for instance, and couldn't bring myself to that.

You don't do gardening. Shut up. It's true that I really had gardening. Yeah, that's pretty bad.

That was, that was sad. I feel bad for beer. All right, your score. So if I'm going to give the cobra a two out of 10.

The cobra was definitely a two out of 10. I probably said this is, oh, it's hard. Because it does have some redeeming qualities. I don't know if it does, it's just so bland.

Oh, I wouldn't drink the cobra. I would drink this. Yeah, that's kind of why I'm going with it, which just makes it a three. A three.

I'm going to give this a four. So that gets a solid 3.5 out of 10. Okay, so Sammy Gell definitely doing better than the Bex Blue at this stage. We've got six or 3.5.

I didn't bring anything to keep note of this, so we're just going to have to try and remember. It's fine, we might be drunk, because I should be. Well, I think, so the Sammy Gell was 0.0. The Bex Blue is not more than 0.05.

Actually, oh, no, they're both not more than 0.05% ABV. So the next one, and I've got high hopes for this one, because Karlsberg have just upped their game. Like they're pills now, it's much nicer than Karlsberg used to be. So one of my weirdly favorite beers of all time, is Karlsberg export from a can.

Karlsberg export from a can. Yeah, I don't know why, but there's something about that combo. But I'm really enjoying it. Next, you're going to tell me you poured line cordial into the top.

Hey, don't I'm going to do anything wrong with that. I went through a phase at university where all I would drink was Karlsberg with line. Yeah, that might have lost us. It's not really something I should admit.

Okay, here we go. Okay, all right, that's open. The last please, down your tasteless beer, please. There we go.

Do you want to tilt your glass? It's not the pour, it's the holder. All right, there we go. I don't think that's going to sway that many.

Oh, the colour. Oh, the colour is much better. That is, that's true. It's very, it kind of looks like the, it kind of looks like the Sammy Gell, in that it's got that lager colour to it.

It's got a good head on it. Golden, dark. Yeah, it's quite golden. Still nothing really on the, oh, hang on.

No, that smells very different. I'm not really sure what that smell is. It's not really hoppy. No, don't worry, I'll let that taste like either.

It's fizzy. What does that taste like? What's the sum of the gal actually that good or did we just go in party one? What does that taste like?

Not really. Always tastes floral. Yeah, it tastes like I've steeped some rose petals. Yeah.

But like they're fizzy and there's some hops in there. Hops, it is a kind of hoppy taste. Is it? Yeah.

I give you mixed hops in with rose water. I'm really selling it here. Yeah. No.

No. No, Karlsberg, I had such high hopes for you. I really like the Karlsberg pills now, but yeah, this is um... It's borderline unpleasant with drink.

It, it, it's cobraing. I think it was cobra was bad, but it wasn't bad to drink, it makes sense. Really? I thought it was bad to drink.

I really like cobra. As a beer, but the cobra alcohol free was just terrible. Okay. Right.

So yeah, I'm done with that one. Okay. So Sammy got solid six. The Bex Blue, we agreed on a 3.5.

The Karlsberg Nordic Alcohol Free Pills Now, Chris. I give that one. Oh, snap. I haven't tried that before.

It was still better than the cobra in my opinion. So I'm going to give it a three, which rounds it out to a two. Okay. Okay.

So we've got a six, a 3.5. I'm really thinking we overrated the San Miguel now. Really? I think the San Miguel was good.

I was happy with the San Miguel. Right. So next one is the Biro Maretti Zero. I also have high hopes for this.

I think we've gone in the right direction. I mean, so far we've got decreasing quality. Come on, Biro Maretti. All the way through.

You've gone from six to three and a half to two. Right. Okay. But was open.

You almost took a sweet, sweet, sweet, sweet, sweet, sweet. I'm the bottle here. There's no fears. Listen.

I was pouring it and nothing was happening. Yeah. Don't think it seems flatter than the others. Yeah.

Oh, there's a smell. Oh, my goodness. There's actually a smell with this one. Okay.

What are you getting? It smells citrusy. Yep. I'm getting lemons and also rice.

I'm just reading off my shopping this now. Okay. Yeah. It's definitely citrusy.

There's not much head to it. It doesn't. I mean, there's a bit more head in your glass, but there's not a huge amount of fizz to it. It just looks more like a foam than like a fizz.

Again, like you can't keep the feeling you're drinking a shandy. It's kind of weird. Oh, my gosh. This one does taste like a shandy.

This tastes exactly like a shandy. Oh, it most tastes like a shetti. A shetti. A shetti made by Maretti.

A shetti. Ah, yeah. It does. It actually tastes like Biro Maretti mixed with just some lemonade.

Yep. It smells good. It looks good. It looks exactly like a Biro Maretti Shandy.

So it's definitely been mixed with lemonade there. It's very pleasant to drink. Also, not more than 0.05% ABV. Probably very full.

I'm also getting quite full. We're going to need a piece. Sorry about that. Ah, yeah.

Into caps. Ah, okay. So I really like this one. I think they've done a really good job.

Hats off to Biro Maretti Zero for just generally being wicked cool. Again, we're not sponsored. This is entirely opinions out into the ether. We're not even going to be able to talk about the hybrid model in a minute.

We're too busy suppressing burps. Yep. Oh, it's a lot of carbon in my stomach. That was really good though.

It's not carbon. Carbon dioxide. Yeah. Because it's carbon.

It's very technical carbon in your body. We are carbon based life forms. I know what you mean about a bourbon. Right.

I'll tell you what, what would you give it? So we're on, come on, we've got to... Again, it just tastes a bit too shandy. Yeah, but it's not unpleasant.

I would happily drink that. I would sit at a pub on a Friday afternoon, end of work, chilling, just drinking one of those and I'd be happy. No, if I'm not drinking beer, I think I'd rather drink a water or no issues. No, if you had to pick one, come on, it's been...

Well, I had to pick one. I think I'd still go with the Sami Girl. Okay, so what would you give the boom ready? There's probably going to be a five.

A five, okay. So I'm actually going to give it a seven. Because I liked it more than the Sami Girl. Controversial.

So that means it equals out to a six. So they're on a par. They are on par. Right.

Let's see if the non- monolithic corporate world can provide us something different. So please say it's made by like... It's, uh, is it Swedish? I think it's Swedish.

Okay. Well, it, okay. Never mind. It doesn't have any...

There's no address on it. It says Brutal Brewing AB. So AB, that's Sweden, I think. Anyway.

Anyway. So here we have the Brutal Brewing Coes beer, a ship full of IPA, which is an alcohol-free kind of craft beer. It's pure beer, only malt, hops and yeast, but it's alcohol-free and it is 0.0% volume. So completely alcohol-free and it is non-monolithic.

It's non-giant company. So here we go. Who ready for the underdog? Come on, Brutal Brewing, you've got this.

You've got a very low bar set. Oh, it's got a Fizz right on the bottom. Oh, it's got such a good colour. Look at that.

Yeah. That is a trim. You're also comparing things that are very much lagers to very much not. Well, yeah, but it's still, it's alcohol-free beer, right?

Yeah. Okay. This is very much like an amber ale. Wouldn't you say?

Or an IPA. Oh. It's been one of those days. Oh, but it definitely has a more amber colour to it.

It's an IPA, but it's definitely got that amber look to it. It's like caramel. It does. It's got a good head on it, which actually looks like a...

They still... None of them have that smell, have they? This one I'm definitely getting like... There's something there, but you have to really reach one.

It's a sweetness. Yeah, almost like a caramel. It's kind of like, hey. Hey.

Indeed. Oh, that's a weird taste. That is a weird taste. It's got a taste.

Oh, I'm really uncertain. So it kind of has the IPA-ness and caramel and a lot of wood. Yeah, so right at the beginning, you get that hit of citrus. And then as it kind of dissipates, you get that lovely kind of bitterness at the back of the mouth.

Yeah, I don't know what that is. That's what I was trying to do. Definitely getting some caramel in there. Well, I guess we can agree that for complexity of flavour, it beats the rest of the pans down as opposed to, yeah, it tastes like a lager with some lemonade in it.

This one actually tastes like a beer. I just don't know if it's a beer I'd want to drink. I think I'd be happy with that. I don't know.

What's it writing? Oh, oh, this is a tough one. I think I'd be happiest with it out of all of them. I think the beer and Moretti would be great if I was on a night out with people who were drinking and I wasn't.

Yeah. Then I would probably go for the beer and Moretti. If I was at home watching, I don't know, Gilmore Girls, or Great Interior Design Challenge or British Bake Off or something, I think I'd probably go for the ship full of IPA. Okay.

So I'm, because they're the top choices for certain situations, I'm going to give it a seven as well. All right. I'm going to give it a five again. Oh, no.

Yeah. You've got a three-way tie. I have a three-way tie. So it's very different.

It's very different. It's very different. So I would say, I would say, probably I preferred the beer and Moretti to the Sami Girls. If I was going to date my rating, I'd probably drop the Sami Girl to a five.

Yeah. And then I think we can agree that the beer and Moretti and the ship full of IPA come out at the top and then the Sami Girl comes third. I preferred the Sami Girl to the Moretti. Oh, you did.

Okay. All right. Do you know what? Three-way tie at the top.

Sami Girl, beer and Moretti and ship full of IPA. All good, all palatable, great. It's like saying who's your favourite Chris or Redgate? I mean, it's obvious.

Yeah. There's two-way tie at the top. Maybe it's your favourite Chris or Redgate. At least take third.

But then I think we're agreed that the the Beck's Blue was just unpleasant. Yeah. Well, it wasn't unpleasant. It was okay.

But the Carlsberg was definitely bottom of the pile. Okay. Well, there you have it. A resounding- That's been a very extended beer session.

Yes. A resounding not actual- Yeah. Committed to bringing you any decent updates or news. But if you are going out and you do want a non-alcoholic beer, then go for the Sami Girl Zero, the Beer and Moretti Zero, or if you can find it, the ship full of IPA from the brutal brewing co.

Yeah, I've got to say, like, our conclusion is that we didn't really like any of them. That's not true. I really liked the beer and Moretti. My conclusion was- No one cares about your conclusions, Chris.

I guess I'm not really an alcohol-free beer kind of going. You know what I have heard? Well- The alcohol-free- Sorry, we're going off so many tangents. But an alcohol-free erringer is going to be really good after you just run a marathon.

Not that I would know. And- It's not- Haring on a second. When did you find this out? Oh, they give it out.

At the end of the lot of marathons. An alcohol-free erringer? Yeah. E-R?

Yeah. So, air-dinger. Air-dinger. Air-dinger.

Air-dinger. Stop. We're saying the same thing. We're not saying the same thing.

You're saying, Ugh. Anyway- It's just my accent. Well, I'll tell you what, they've listened to 30 minutes of us comparing non-alcoholic beer. So if you're still here, gentle listener, I applaud you and thank you to enter our special prize draw.

No, just kidding. But I think it's time we probably moved on quite swiftly, maybe. You're going to break up with me. Chris, it's not you.

It is. Oh, who am I kidding? It is you. I think it's probably time we moved on.

And today's special, like I said, is not talking the hybrid model where we have migrations for tables and state-for-stored procedures functions, tables, what? Store procedures, functions, views, etc. Programmable objects. And we're not talking hybrid in terms of the hybrid DBA.

The wonderful, if you don't follow him already, hybrid DBA on Twitter, Hamish Watson, absolute genius, wonderful guy, hilarious, just honestly going following him. But today we're going to be talking about the new hybrid model. The new. The new hybrid model, which is almost like, how would you characterize it, Chris?

It's, to me, it's an extension of what a lot of people are doing already. So just a pre-face for those who haven't come across this before. But when it comes to source controlling databases, you basically have two leading models, state-based, and then migration-based. Oh.

And they have different benefits and drawbacks, because source controlling isn't something that was fundamentally built for databases. That's absolutely true. I mean, there's always a bit of a trade-off. The state way, I think we've done state versus migrations in a very, very early episode of DBL.

But just a quick recap. The state-based way is, of course, more in tune with what we do for application coding. So for C-sharp files, for jar files, all these sorts of things, they can be source controlled by your update, the relevant file. The newest version of that file goes into version control, the state of that file at commit.

Yeah, so every object has its own different script. Yeah, all that's relevant to create script. It's very easy to work with it if you're on the development side, because you check your objects in, you see what changes you made, check them back out again. You can undo them if you want.

Yeah, it's straightforward. You can see object level history very easily as well. Yeah, object level history is not something to be overlooked, because it can be really helpful if you see how it's evolved over time. And who made what change when, how, blah, blah, blah.

So the flip side is that when it comes to deployments, it doesn't lend itself very nicely to automation, because you basically have to make a decision when it comes to deployment as to what is getting deployed out. And as we know, if you're adopting a truly agile, kind of scrum-style methodology, the last thing you want to be doing is making a decision on what should be deployed later stage in the pipeline. You actually want things to be... I guess more Christian how it gets deployed.

Yes, I mean, that's the key thing, right? When it comes, like I said, with application code, it's fairly straightforward. We take a new version of the file, but with databases, it's not so straightforward. You're dependent on some kind of differencing engine to generate the necessary upgrade script.

And then the flip side to that, so the migration is based on that. You write migration scripts and then you deploy those. Yes, so they're primarily just the deltas, as opposed to the create scripts being stored against those objects as new versions. But rather, we have the create statements for those objects as a baseline migration, everything needed to create the database.

And then we build those incremental difference migrations on top, like different versions. But instead of having hard and fast versions in source control, we just have the steps on how to get to the next implied version. So this is really, really good for automation, because it means that you know exactly what's going to happen. It's repeatable, it's incremental, it's easily deployed, there's no big bang deployments, the DDLs nicely wrapped up and small.

Any weirdness you actually write into your code itself. Yeah, well, that introduces a whole new level of weirdness, doesn't it? Yeah, but it basically means you can cover pretty much any situation that comes up. But the flip side is you no longer have object level recovery.

Object level recovery history. History history. Well, it's gone straight to my head. Oh, those are all free days.

Yeah, you don't have the object level history. You don't have the easy ability to kind of see what changes were made at each point. Rollbacks are significantly harder, especially if you don't have previous versions to compare with. We need to do an episode on that database.

Well, that sounds good. Oh, we can ask Kendra. You said that to everything. Oh, we could ask Kendra though.

Anyway, so those are the two basic models. As Chris has said, we have covered that in more detail previously. Yeah. And I'm sure there's plenty of documentation on the regular website.

Please go to documentation.read.io and go.com forward slash. I don't know. Some other link. Obligatory plug right there.

So we, we at Redgate have been working for quite a long time to support basically both of those methods. Yeah. And trying to do so in a way that minimizes the drawbacks as much as possible. And most recently, we thought, why don't we try and smush it together?

Yeah, because that always works. Yeah. So what we want is the state-based web source controlling. Because it's easier for developers to understand.

It's very straightforward. It's, you know, you don't have to worry about everybody making manual changes to migration scripts. Because if you open it out to a team of 100 developers and everyone's customizing their own migration scripts and you're not actually carrying out proper thorough unit testing and automated testing and blah blah blah blah. And then we want to automate using migration scripts because they're repeatable, they're quick and easy.

And they're right. Exactly. Exactly. So how do we do that?

Well, we don't. The trick is to essentially introduce an extra step in the process. Oh, we do. Oh.

So we call this the hybrid model now. And that means that everyone source controls in the state-based way. And then someone, somewhere. Maybe a original developer.

Maybe a user or some DBA or more of a senior developer. Someone who's thinking it could be the developer themselves. True. It could be the developer themselves.

Someone also then makes a change script of those changes. Yeah. So in a perfect, I guess, perfect representation, you have a team of, let's say, five guys or one developer. I mean, guys collectively.

Oh. Guys, I just gave him an incredibly intense inclusion, like, what's the word? Like, it was a glare, wasn't it? Yeah.

Five guys. The collective word for guys. What's the collection for a group of developers? What's the collection now?

Frequently asked questions

How long is this episode of DBAle?

This episode is 56 minutes long.

When was this DBAle episode published?

This episode was published on January 31, 2020.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this DBAle episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.