troubleshooting Question

Need everyone opinion

Avatar of yamiho
yamiho asked on
Programming
1 Comment1 Solution202 ViewsLast Modified:
Hi Guys,

I need an opinion from all of you about the table design for production transaction database (very heavily used approx 2.5 million inserts). I've attributes table and master table which stores column index:

TX_LOT_ATTRIBUTE (TRANSACTION TABLE)
=============
LOT_NUMBER      VARCHAR2(13)
COLUMN_01      VARCHAR2(50)
COLUMN_02      VARCHAR2(50)
COLUMN_03      VARCHAR2(50)
COLUMN_04      VARCHAR2(50)
COLUMN_05      VARCHAR2(50)
========================
UNTIL COLUMN_100 AT THE MOMENT. And I have another table called LU_METADATA, that's where I keep the column reference(Column ID, Column Name, Column Description, DataType, etc.. etc..). Everytime, the application needs to look for master data (which is in different database) and put the values into the correct column for transaction.

So, currently it is completely de-normalized table structure, I would like to re-design by keeping normalization in mind, i.e. something like this:
=======================
LOT_NUMBER      VARCHAR(13)
ATTRIBUTE_NAME      VARCHAR(10)
ATTRIBUTE_VALUE      VARCHAR(50)
=======================
LOT_NUMBER + ATTRIBUTE_NAME will have primary key.

This is a pure transactional database, we have seperate database for reporting. Can you help me to justify based on your own experience which one will be faster for insert and update.

Your opinions will be highly apprecaited.

Regards
YamihO

ASKER CERTIFIED SOLUTION
itcnbwise

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 1 Comment.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 1 Comment.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004