× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



rob@xxxxxxxxx wrote:
Let's keep it simple then. What sound business reason is there to not have a primary key constraint on the item master file?
Because I control it programmatically and thus I don't need a constraint. Now, technically, that means that I could get two records with the same key (it would require two jobs adding the same item at precisely the same millisecond, but it could conceivably happen). So it depends on the application. If item masters are added by a human being, then I would say the constraint is unnecessary. If they are added in bulk by a batch process, perhaps more of an issue. If you have a process that tends to add duplicate records, then you probably do need it (of course, I'd focus on fixing the process).

You're not asking a new question, Rob. We've had the UNIQUE keyword on logicals and keyed physicals forever, and not always used it for the simple reason that it added overhead. Should every primary key have a UNIQUE constraint? That's a business decision. But if I choose not to have it, it doesn't make my database design bad. It just means I trust my application and would prefer not to have the extra overhead of the constraint.

You want to make this a "good" vs "bad" decision and its simply not that way. You have to make each decision with the appropriate forethought.

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.