Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max number of fields good practice
Message
 
 
To
28/09/2019 15:50:25
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01671240
Message ID:
01671251
Views:
42
>>>>Hi,
>>>>
>>>>The main table of my app has about 70 fields (column in SQL Server). And I need to add 6 more fields. This table, for the largest customers is about 700,000 records/rows (in SQL Server) and will probably be 1,000,000 soon.
>>>>In your experience is this number of fields (about 80) too many for the table of this size? I just want to know if I am not "breaking" a good practice.
>>>>
>>>>TIA for you input.
>>>
>>>No problem, you are far from the maximum number of fields. However, if the extra fields will only rarely contain data, I would probably create a separate table. Difficult to say without more details.
>>
>>First, thank you. What is the maximum number of fields?
>>As to creating a separate table, I thought about it. But, as far as design, it will be more overhead (design) and time to implement and maintain. So, for simplicity - as long as I am not breaking SQL Server or VFP, putting these fields in the same table would work better.
>
>If changing the data structure is a task you expect to happen from time to time, and it takes a lot of time to implement and maintain, you may need to rethink your data layer. Adding a child table with a foreign key should be a standard task that is managed by a good data layer that does all the work for you.
>Time is too precious to waste on recurring and tedious tasks.

Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform