SQL Performance (MOSC)

MOSC Banner

Index performance between two modelization

edited Oct 23, 2019 5:02AM in SQL Performance (MOSC) 8 commentsAnswered

Hi,

I have some questions on Oracle index performances between two modelizations.

Please consider the "classic model" below:

TABLE: PEOPLE (ALL DATA ARE FICTITIOUS)

ID (PK)
NAME (VARCHAR2)REFERENCE (VARCHAR2 + UNIQUE CONSTRAINT) BIRTHDAY (DATE)
FAVORITE_NUMBER (NUMBER)GENDER (VARCHAR)IS_HAPPY (BOOLEAN)
SALARY (NUMBER)
1SMITH15687401/02/198545maletrue3874
2BROWN19745305/08/2001124femaletrue2985
3TAYLOR79441203/09/196878femalefalse2852
4ZONZI48541224/09/19992maletrue1234

...

Please consider the less classic model below:

PEOPLE_IDCARACTERISTIC_TYPE (VARCHAR2)
VALUE (VARCHAR2)
1NAMESMITH
1REFERENCE156874
1BIRTHDAY01/02/1985
1FAVORITE_NUMBER45
1GENDERmale
1IS_HAPPYtrue
1SALARY3874
2NAMEBROWN
2REFERENCE197453
2BIRTHDAY05/08/2001
2FAVORITE_NUMBER124
2GENDERfemale

.. and so on

The main interest of the second model is to be able to add a new characteristic without needing DDL operation. I am convinced that it is not performance compliant but I don't know how to evalute the gap between the two models.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center