Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Database Design and Modeling with Google Cloud

You're reading from  Database Design and Modeling with Google Cloud

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781804611456
Pages 234 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Abirami Sukumaran Abirami Sukumaran
Profile icon Abirami Sukumaran

Table of Contents (18) Chapters

Preface Part 1:Database Model: Business and Technical Design Considerations
Chapter 1: Data, Databases, and Design Chapter 2: Handling Data on the Cloud Part 2:Structured Data
Chapter 3: Database Modeling for Structured Data Chapter 4: Setting Up a Fully Managed RDBMS Chapter 5: Designing an Analytical Data Warehouse Part 3:Semi-Structured, Unstructured Data, and NoSQL Design
Chapter 6: Designing for Semi-Structured Data Chapter 7: Unstructured Data Management Part 4:DevOps and Databases
Chapter 8: DevOps and Databases Part 5:Data to AI
Chapter 9: Data to AI – Modeling Your Databases for Analytics and ML Chapter 10: Looking Ahead – Designing for LLM Applications Index Other Books You May Enjoy

Considerations for a good database design

Why is it important to take a lot of possible scenarios and probabilities into account while making design decisions? Let me tell you a story that I read in a book called How Not to Be Wrong, by Jordan Ellenberg, an interesting read that talks about real-life applications of mathematics.

Like many other things, our story dates back to World War II, when things happened frequently. In this case, the US fighter planes entered combat with loaded machine guns. They didn’t want their fighter planes to get shot down by the enemy fighters. So, a statistical research group (SRG) of extraordinary statisticians was organized to aid the war effort, where equations were developed (and not explosives) to find a solution. Here’s the question that was posed to them: “You don’t want the fighter planes to get shot down, so you need to armor them, but armor makes the plane heavier, and heavier planes are less maneuverable and consume more fuel. Not too much, not too little, but we need to armor the planes somewhere at the optimum level.

The military gave some useful data to the SRG: when American planes came back from a mission, they were covered in bullet holes. However, the damage wasn’t uniformly distributed across the aircraft. There were more bullet holes in the fuselage than in the engines. The bullet-holes-per-square-foot distribution was as follows:

  • 1.11 in the engine
  • 1.73 in the fuselage
  • 1.55 in the fuel system
  • 1.8 on the rest of the plane

The officers saw an opportunity to quickly conclude that the armor concentration needed to be in the area with the most bullet holes per square foot. One specific answer from the smartest statistician in that room contradicted this popular opinion, yet it was very insightful. Abraham Wald stated that the armor doesn’t go where the bullet holes are the most concentrated, but where they aren’t. Wald’s insight was simply to ask: where are the missing holes? The missing holes were the ones that would have been all over the engine casing if the bullet hole distribution had been spread equally all over the plane. Wald was sure that the missing holes were on the planes that had been shot down. The officers simply observed the planes that had returned from the mission but the ones that got hit in the engine had not returned at all!

I am sure by now you have already connected the dots as to why it is important to assess all the “missing holes” before you settle on the choice of database and the database model – it is because you don’t want to armor the wrong part of your business and end up spending more effort in the long run. If you’re wondering whether there is a quick and dirty solution, the short answer is no. However, a good design comes with a set of considerations around business attributes and technical aspects while designing the database model.

You have been reading a chapter from
Database Design and Modeling with Google Cloud
Published in: Dec 2023 Publisher: Packt ISBN-13: 9781804611456
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}