translation

This is an AI translated post.

제이의 블로그

Physical Data Modeling

Select Language

  • English
  • 汉语
  • Español
  • Bahasa Indonesia
  • Português
  • Русский
  • 日本語
  • 한국어
  • Deutsch
  • Français
  • Italiano
  • Türkçe
  • Tiếng Việt
  • ไทย
  • Polski
  • Nederlands
  • हिन्दी
  • Magyar

Summarized by durumis AI

  • If logical data modeling is the task of creating tables suitable for relational databases, physical data modeling is the task of creating tables for actual use, taking into account storage space efficiency and performance optimization.
  • Performance can be improved by utilizing slow queries, indexes, and caches, and if performance issues persist, denormalization, which changes the database structure, can be considered.
  • Normalization sacrifices read performance for write convenience, but denormalization can lead to performance degradation, so it is important to identify the problem accurately and make a careful decision.

If logical data modeling was about creating the ideal tables for a relational database, physical data modeling involves transforming those ideal tables into practical ones, taking into account efficient storage utilization, object partitioning design, optimal index design, and other performance enhancement and optimization considerations.

Finding slow queries that cause bottlenecks in service operations varies depending on the type of DBMS, and you need to search for them using the keywordSlow Query.

Things to Consider for Performance

Finding Slow Queries

  • Slow queries are queries that fail to execute within a certain time frame when the DBMS receives a request.
  • Identify slow queries that cause bottlenecks, determine the root of the problem, and resolve them.

Index

  • Indexes dramatically enhance read performance on rows.
  • However, they reduce write performance and require more storage space.


Cache

  • A way to reduce database load at the application level.
  • It stores and responds to requests with the same input in the storage space.


If performance issues persist even after employing these methods, proceed with a process called denormalization or inverse normalization.

This involves modifying the structure of the table.

Trade-off of Normalization

Normalization is akin to sacrificing read performance for the convenience of write operations. When normalization is performed, you need to write queries to join data from multiple tables.

However, normalization doesn't always degrade performance, so it's crucial to accurately identify and review the issue before proceeding with denormalization.

The link below presents a valuable article discussingDenormalization.

Denormalization, Inverse Normalization

It's essential to understand that denormalization should be carried out after normalization. Starting with a non-normalized table is not recommended.

This knowledge isn't immediately necessary, so we'll simply take note of it for now.

Table Denormalization Techniques

Source - DataOnAir - Denormalization and Performance

Column Denormalization

Source DataOnAir - Denormalization and Performance

Relationship Denormalization

Source - DataOnAir - Denormalization and Performance

Jay
제이의 블로그
1인분이 목표인 초보 개발자
Jay
Logical Data Modeling Logical data modeling is the process of transforming a conceptual data model into the relational database paradigm based on mapping rules, handling 1:1, 1:N, and N:M relationships, and ensuring data integrity through normalization. It refines tables throu

April 9, 2024

Kanban Board Project 2 Logical Data Modeling This document explains how to perform logical data modeling based on the conceptual data modeling ERD, step by step, and proposes solutions to difficulties that arise during the normalization process. In particular, it discusses in detail the consideratio

April 9, 2024

Relational Data Modeling Relational data modeling is the process of dividing real-world information into tables and data, going through the stages of requirement analysis, conceptual data modeling, logical data modeling, and physical data modeling. Conceptual modeling is visualiz

April 8, 2024

[DB] Criteria for setting up a cache This is a practical guide on how to cache data that is frequently read but rarely written. By using an APM like DataDog, you can analyze RDB query call history and find out how to select tables with a high number of read queries and a low number of update
제이온
제이온
제이온
제이온
제이온

April 25, 2024

[Objects] Chapter 1. Objects, Design In software development, practice is more important than theory, and good design makes code easier to understand and more adaptable to changes. Object oriented design provides a way to properly manage dependencies between collaborating objects, which can
제이온
제이온
제이온
제이온

April 28, 2024

Digital Detox Meaning and Methods Digital detox is necessary to address mental health deterioration due to smartphone and social media use. Through steps such as digital intake assessment, maintaining regular screen time, engaging in alternative activities, practicing mindfulness, and see
알려드림
알려드림
Digital Detox Meaning and Methods
알려드림
알려드림

April 12, 2024

What is Crawling? A web crawler is a software that automatically navigates web pages on the internet and collects information. It is an essential technology for search engines to understand the content of web pages and reflect it in search results. The crawling process inv
여행가고싶은블로거지만여행에대해다루진않을수있어요
여행가고싶은블로거지만여행에대해다루진않을수있어요
Virtual crawling bot image
여행가고싶은블로거지만여행에대해다루진않을수있어요
여행가고싶은블로거지만여행에대해다루진않을수있어요

April 26, 2024

[Effective Java] Item 1: Consider Static Factory Methods Instead of Constructors Static factory methods provide a flexible and efficient way to create instances instead of constructors. They can have names, return instances that meet specific conditions, and improve performance through caching. Unlike the singleton pattern, they can c
제이온
제이온
제이온
제이온

April 27, 2024

[Metal Materials Function Master Practical Exam] Solution for the 37th Exam This document contains a variety of information about the properties of metal materials, testing methods, heat treatment, alloys, etc. It covers various topics such as permeability meter, magnetization curve, microstructural examination, non-metallic incl
blog.naver.com/gksmftordldi
blog.naver.com/gksmftordldi
blog.naver.com/gksmftordldi
blog.naver.com/gksmftordldi
blog.naver.com/gksmftordldi

April 24, 2024