![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi every one! I've got a design question: Currently, we've got a table called "session" which contains all data regarding a production session. I won't explain what is exactly a "session", that's not the scope. In this table, a field handles a "lot number", the "lot number" involved during a session. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
For now, the business needs the ability to records multiple lot numbers per session. So there are several lot numbers for one session record. The good way of DB design suppose to extract the "lot number field" in a child table that would make the link between a "session" and a "lot number" with, why not, a unique ID primary key. This design would complicate the magagement application design: hard to display in a grid all sessions with its lot numbers (separated by commas for instances), performances issues (joins), grouping, cursor processing, etc... |
#5
| |||
| |||
|
|
I mean by "handles" helds or contain, store.... a lot number data is recorded into that field. I'd like to add: what knid of limitations will I encounter if I store multiple "lot number" into a long varchar string field? What will I not be able to do? |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
How does one enter data? According to business needs, hte data entrie should be perfomed "inline", I mean in a single line edit control, in a list control. Idem for updating data. No delete is actually performed (GMP app). |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Well you're on that point: the input application is actually not a real problem. The problem is to retrieve data and isplay them without spending more than one minute on each screen. I'm aware of good db design practices but here we've got a performance issue. We are talking about millions of rows that each will have to call a stored procedure to retrieve lot numbers. That won't make it. Do it in a separate table (a child table) and measure the performance. I |
#10
| |||
| |||
|
|
Just imagine, that for each row, I have to retrieve the list of related lot number, than format them in a string! |
|
I thought about an issue: why not keep the child table AND the big field and manage them together (by trigger)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |