JP3003
07-26-2006, 11:36 AM
Hi all ,
we all learn in college that we have to normalize our DB ER
and one rule is to make any multi value attribute in different table with a Primary key
like when we want store person's info
we put his ID , NAME , ... in table
and his skills in diff table
like person with id = jp3003
has skills like :
java , php , C# , UML
we store it as 4 records in the Person-Skill table
;
i wonder why don't we store it in one field in the Person table !
like : java php c# UML
with space in between and store them as TEXT type !?
is not that better for performance !?
since when we want to display the Person's info later
we will need to read one table only ! (Person)
not reading two table Person + Person-Skill
and if we want search for people who has the java skill
can't we use "like" operator ? with a pattern like " java "
Is it better for performance ?
will the use of TEXT type or Like operator affect the performance ?
thanks
we all learn in college that we have to normalize our DB ER
and one rule is to make any multi value attribute in different table with a Primary key
like when we want store person's info
we put his ID , NAME , ... in table
and his skills in diff table
like person with id = jp3003
has skills like :
java , php , C# , UML
we store it as 4 records in the Person-Skill table
;
i wonder why don't we store it in one field in the Person table !
like : java php c# UML
with space in between and store them as TEXT type !?
is not that better for performance !?
since when we want to display the Person's info later
we will need to read one table only ! (Person)
not reading two table Person + Person-Skill
and if we want search for people who has the java skill
can't we use "like" operator ? with a pattern like " java "
Is it better for performance ?
will the use of TEXT type or Like operator affect the performance ?
thanks
