1

I'm working on a database that describes different physical characteristics of certain people.

My question is, would performance be quicker/less of a workload to have multiple columns setup like so:

HAIR | EYES | HEIGHT | WEIGHT
brwn | blue | 5'9"   | 150

Or have a single column separating the data with delimiter, like so:

ATTRIBUTES
Hair: Brown,
Eyes: Blue,
Height: 5'9",
Weight: 150

Does one have an edge of the other?

0

2 Answers 2

2

You should have separate columns for each attribute. Otherwise why are you even using a database?

Sign up to request clarification or add additional context in comments.

1 Comment

+1: Trying to get specifics, like the number of people with blue eyes would be incredibly painful
1

The performance difference would be minimal, if any. The problem with delimiting the data in a single column is that it makes it more difficult and resource intensive to perform a search. What if you want to find all people that weight between 150 and 160 and have blonde hair? Wont be that easy with it all stuffed in a single column.

1 Comment

Impact depends on the operation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.