Database programming question.

Status
You're currently viewing only reboot's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

reboot

Ars Legatus Legionis
10,818
Each user could potentially have data in over 500 non duplicating fields.

first of all, I would question DB design here. 500 fields is a lot and quite uncommon.
what is this information being stored about users ??

largest number of potential column I've is 3500 which were test results on chips (3500 different possible tests) but since it was a sparse matrix, it was eventually reorganized into something much narrower.

See if there's another way to organize this data.

Is there a problem with making tables with upwards of 50 to potentially 80 fields if the data is commonly related

This is not a problem at all, provided you're using a *real* D/B...
that means forget access.
SQL Server or preferably DB2 or Oracle.
I'm listing commercial solutions because this is what I know but there could be some free solution that would work too depending on the size of the D/B.

How many records do you expect to be in that user table ?
Couple thousands ? you need not be concerned about performance.
More than that ? You shouldn't tackle this by yourself, we're talking DBA work then.
 

reboot

Ars Legatus Legionis
10,818
Let's say I have a table with 100 fields (not really out of the question), field b will be related to all other fields, field c will be related to b and maybe 12 others.

then if I understood correctly, those 12 fields should go in a different table, not in the same one.

I'm expecting it to be upwards of potentially 10-15 thousand records.

that is nothing for any real D/B on an half-decent server.
index creation should be minimal and straight-forward for instant results.

Why develop on MySQL if you plan to go to Oracle ?
 

reboot

Ars Legatus Legionis
10,818
without insulting you intelligence, what is your experience / formation with design / modeling ?

I would suggest reading a book on D/B design and/or data modeling first.

this job sounds like you need a solid model, you shouldn't just throw everything together.

as a general rule, very wide tables are rare and usually indicate a bad design.

In particular, there's only so much I can think of for user related data, it should really be narrow.
(name, adress, department_no, salary, etc...)

Can you give examples of what you're considering putting into a user table ?
 
Status
You're currently viewing only reboot's posts. Click here to go back to viewing the entire thread.
Not open for further replies.