Questions tagged [denormalization]

Database denormalization is the action of adding redundant data to database for performance optimization. This is the opposite to normalization where data is split into separate tables.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

How to Preserve Past Order Details Amidst Customer Information Changes?

I'm facing a scenario in my e-commerce setup where after an order is marked as Done, any subsequent changes made by the customer to their information (like shipping address) are reflected incorrectly ...
0 votes
1 answer
451 views

Table with only one column because of many-to-many relationship?

Right now I have three tables: person, alias, and person_alias. As suggested by the names of tables, one person can have multiple aliases and one alias can be used by many people, and hence I add a ...
0 votes
0 answers
30 views

Database design for ID (RFID) card access

One of the system design interview questions I got many years ago was to design an ID (RFID) card access system. I don't remember how I answered the question back then but I attempted a solution ...
-4 votes
1 answer
37 views

Is it normal to have 300 queries to display a single page? [closed]

The total number of queries is: Q1 * Q2 * Q3, it might be 25 * 3 * 4 = 300, or maybe even more. all of these is for a single user displaying a single page! Should I duplicate the data and store them ...
1 vote
1 answer
79 views

A clarification about data normalization

I've been a software developer for 8+ years now and I think I have a pretty good grasp of the concepts but as an entirely self-taught developer, I have some unfortunate gaps in proper terminology. ...
1 vote
1 answer
241 views

Junction table or denormalize?

I'm using MariaDB. I'm designing a simple application that can send notifications to subscribers for when certain websites they've subscribed to have been updated. A user can be subscribed to several ...
2 votes
1 answer
517 views

Should a counter column with frequent update be stored in a separate table?

I have a MySQL/MariaDB database where posts are stored. Each post has some statistical counters such as the number of times the post has been viewed for the current day, the total number of views, ...
0 votes
1 answer
165 views

Does combining multiple tables into one table with more than 100 columns improve performance and overall design?

I have 10 tables without any type of foreign key relations between them. All the tables have the same primary key. In this case, "stock_id" is the primary key. All table columns describe a ...
2 votes
2 answers
2k views

Data normalization (from 0NF to 1NF)

I am designing a relational database in mySQL - a library management system. I want to show examples of the data in 1NF, 2NF, 3NF, BCNF, etc. My example of 1NF looks something like this "A relation ...
0 votes
2 answers
79 views

Is it possible to store historical configuration settings for each row of data without cramming all the configuration settings into each row of data?

For background: I was recently hired as a database engineer for a water treatment company. We deploy water treatment machines to sites across the country, and the machines treat water and send ...
1 vote
1 answer
102 views

Can I use Azure Data Lake in place of Data Warehouse to separate Compute and Storage of RDBMS analytics [closed]

I am from a telemetry data engineering background and am looking for some help on a use-case I am not familiar with as to whether my proposed architecture is practically feasible in Azure. The use-...
10 votes
3 answers
2k views

Integrity constraints in a relational database - should we overlook them?

I’m in a permanent discussion with the developers of the company where I work because they say it is better to get rid of relationship enforcement (via FOREIGN KEY constraint definitions) in a ...
0 votes
3 answers
108 views

How do I ensure I have split my tables without loss of data?

This is w.r.t Database Normalisation, when I have a redundant table that causes anomalies, I would want to consider splitting it in smaller tables as per the NF rules. BUT Say I split a big table into ...
1 vote
1 answer
1k views

database design - table with multiple nullable foreign keys

Context: I have 3 unrelated entities (tables) Entity1, Entity2 and Entity3 I have a table called Operation, which can have multiple targets. A target for an operation can be Entity1, Entity2 or ...
8 votes
4 answers
987 views

Store millions of rows of denomalized data or some SQL magic?

My DBA experience doesn't go much further than simple storage + retrieval of CMS style data - so this may be a silly question, I don't know! I have a problem whereby I need to lookup or calculate ...
0 votes
1 answer
30 views

Is it correct way having status or Summary columns in parent table or should choose another precedure?

My Parent Table is "Jobs" table, and there is child table that records Job's actions named "JobActions" as below: Jobs (JobId, JobType, CurrentStage, AssignedTo) JobActions (JobActionId, JobId, ...
0 votes
1 answer
95 views

how to professionally normalize my database - screenshots included

Hello database administrators. I got some excel spreadsheet with data of "my customers" and I'd like to create professionally designed database out of it. Can anyone tell me how this data should be ...
2 votes
3 answers
567 views

Are updates the only disadvantage of denormalization?

I am trying to understand what are the disadvantages of denormalization. Say that I have the following database (School_has_Student is a denormalized table): I have read that the problems that you ...
-2 votes
1 answer
36 views

access database normalization :how to deal book volumes like 1-2 or 3-4 [closed]

my question is about NF1 what is best practice to store book volumes in table . for example mostly it is like bookname = abc volume= 1 ect but some time it is abc volume 1-2.
16 votes
1 answer
7k views

Designing a database for a video game business domain with multiple many-to-many relationships

I am relatively new to database design, and I decided to make my own hypothetical database for practice. However, I am having trouble modeling and normalizing it, as I esteem that there are numerous ...
0 votes
1 answer
74 views

Does any MariaDB engine have the option to declaratively or configuratively abstract highly-redundant data?

I have an application which is architected in a "NoSQL" style around one fully denormalized "main table" which currently just holds a primary key and one JSON-valued column. For reasons which are ...
0 votes
1 answer
655 views

How to denormalize many-to-many relation without nested select?

I have the following schema: house has many students, student has one house gender has many students, student has one gender game has many students. student has many games For instance, consider ...
1 vote
2 answers
1k views

Why is data integrity not possible when using denormalization?

This tutorial says the following: For proponents of denormalization, the thinking is as follows: normalization creates more tables as you proceed towards higher normal forms, but more tables ...
0 votes
1 answer
2k views

Select records based on earliest date in a linked record

I am a retired teacher working on my first MYSQL database as a personal project; please let me know if I've inadvertently violated conventions. And thank you! The database's domain is fiction stories,...
0 votes
1 answer
234 views

Is this a good database design or transition? Normalize to Denormalized for Data Warehousing [closed]

As of now in sql server , we have a data and a series normalized table structure that is connected to a C# web app (Human Resource / Recruiting System) (slightly medium (or small 12,000 rows.) size ...
-1 votes
2 answers
1k views

Modeling Sellers and Products

I'm trying to model product and seller information. The seller can be either an individual, or a company, or a company with branches (and the product is being sold by a particular branch). Each ...
0 votes
2 answers
118 views

Normalizing the Test Table

I'm a web developer looking to leverage more of the power of my RDBMS. I'm currently learning about normalization of data and database design. In the book that I am reading, we started off with one ...
7 votes
6 answers
3k views

Storing personal data on an invoice to preserve data integrity

I want to store invoice data like addresses of people. But the problem is addresses can change over time - for example someone will move out and change his address. The problem of storing such data ...
2 votes
2 answers
55 views

Normalizing data past initial db design phase

I wanted to poke at everyones brain to better understand when it makes sense to normalize a table that carries redundant data. I recently worked on a project at my startup and really question myself ...
6 votes
1 answer
866 views

Is splitting a CSV column into a separate table (enforcing 1NF) unnecessary complication?

I had very carefully asked the table designer why he had chosen to create CSV columns in multiple tables. The designer's answer was that splitting CSV columns into separate tables was "...
4 votes
2 answers
279 views

Is combining independent tables called normalisation?

So, at workplace, we currently store our audit logs in different tables, depending on what it is e.g. login/access info, configuration changes, etc. These are all independent data with no foreign ...
1 vote
3 answers
719 views

When is it beneficial to move duplicate data to a reference table?

If there is column with values from some finite set S, for example S = { alive, dead, unknown } for a life_state column in a persons table, when is it beneficial to add a reference table? Options: ...
2 votes
3 answers
193 views

Storing Procedure Fields That Were Used

I am creating a database for production work (specifically lab testing). Most Work is for production, therefore performed strictly according to the Procedure for that Product. By itself, this is easy ...
2 votes
2 answers
57 views

Schema For "Other - Add Comment"

Many user forms contain an option for "Other - Add Comment" where the user can provide an item not found in the given list. In other words, the developer sets the list of items. The user must either ...
0 votes
1 answer
259 views

Checking if a transitive key dependency is in 3rd normal form

I'm currently trouble determining if one of my schemas is in third normal form. I have a table with columns image_id (A), upload_time (B), uploader_id (C), and image_file (D). A is a key (unique ...
0 votes
0 answers
160 views

Normalization of database according to the given data

I'm creating new database based on existing database, performing some normalization. Here is the table containing multiple information, it's basically for booking trips etc I've divided all the info ...
0 votes
2 answers
471 views

How to design database tables using normalization in better manner in SQL?

I have designed my tables in below manner. Countries Table:- PkId --- + Country Name --- + StatusFlag 1 | India | L 2 | China | L 3 | Sri Lanka | L ...
2 votes
2 answers
283 views

How can I optimize this query over this logging table?

I am trying to optimize a table layout for a table that logs events. The log table contains three relevant columns: Timestamp, ItemId, LocationId Each row means that at a given time, a certain item ...
2 votes
1 answer
434 views

Duplicate data or Relationships?

Given two tables: Product int id int operator_id string name string description int price Operator int id string logo_path string tos_path int tax_number I need to call multiple ...
0 votes
1 answer
107 views

Is this really in 3nf?

I cannot comment on https://stackoverflow.com/questions/8437957/difference-between-3nf-and-bcnf-in-simple-terms-must-be-able-to-explain-to-an-8, so I have to post my question here. It is about the ...
2 votes
1 answer
161 views

Redundant FK on parent relationship is denormalization?

Let's say I have this database client | id | status | sale | id | client_id | date | sale_item | id | sale_id | *client_id* | The *client_id* column is redundant, because we can JOIN and get ...
4 votes
2 answers
359 views

Two primary keys but not a composite, what is this sort of relationship called?

I am integrating employee/position data with another system. The first system is HR. It has an Employee table and a Positions table. The second system tracks office space and tracks who the office ...
0 votes
1 answer
2k views

PostgreSQL multidimensional array - ok to use or misdesign in this case?

I have a table called listings. For each listing, the user can upload 5 images. In the table listings, I have a multidimensional array images text[][]. Each multidimensional element will hold [ a ...
1 vote
1 answer
186 views

ALTER TABLE online by keeping data as BLOBs

Could you please explain me how extreme de-normalization (store the value as a serialized blob will help to ALTER TABLE online? source Additionally, it's crucial to be able to change the schema: ...
1 vote
1 answer
141 views

Database normalization vs several dozen joins [closed]

Using PostgreSQL I have a few tables that are about 22,000 records and about 275 columns. These tables are actually reports. There are about 25 sections in each report containing anywhere from 4-12 ...
5 votes
5 answers
12k views

Normalization for postal addresses in US (address, county, city, state, zipcode)?

I've been trying to understand for the last few years which way is good for storing addresses. I've been getting "normalize all the way" but also "denormalize as much as you can" and I just cannot get ...
0 votes
1 answer
115 views

Similar data with fields redundant in one table

I need four different plans to be stored in one or more tables. All four plans share the fields however some plans have extra fields. All plans fit into the plans-table: PLANS(id, provider_id, ...
2 votes
0 answers
542 views

Normalization vs denormalization for these kind of data?

I'm using Firebase realtime database (NoSQL), And trying to figure out the best database design for my data. My data is primarily about discounts, each affiliator introduces a number of discount ...
4 votes
1 answer
871 views

Do I have to (sometimes) sacrifice normalization for data integrity?

I often come up against the following challenge, and end up de-normalizing my table design in order to enforce data integrity. I would be interested to hear if there is a different way of modelling ...
0 votes
1 answer
972 views

How to prevent Performance issue & going for Denormalization

We are planning to do an e-commerce shopping site with PHP-MYSQL combination. I read in almost every link related to Normalization & Denormalization : Normalize until it hurts, denormalize until ...