Re: Why all the max length constraints?
Date: Sun, 28 May 2006 03:41:12 GMT
Message-ID: <sZ8eg.13907$A26.329963_at_ursa-nb00s0.nbnet.nb.ca>
J M Davitt wrote:
> dawn wrote: >
>> J M Davitt wrote:
>>
>>> dawn wrote:
>>>
>>>> As many of you know, I work with database management systems that treat
>>>> all data as variable in length, while one might specify a length for
>>>> display purposes.
>>>
>>> I can't imagine that it's useful for 'Smith, Joseph' and 'Smith, John'
>>> to appear as identical values when, say, displayed in a field of eight
>>> characters.
>>
>> Obviously not if truncated. The default with Pick would be to wrap in
>> any display. This is usually good, but has its own issues too, of
>> course. For every solution...
>>
>>> I also work with products where all data are of variable
>>> length. (There is a maximum, but it's huge.) PITA. This mis-feature
>>> accounts for a fair number of support calls.
>>
>> What is the best mitigation strategy in your case? If you know that an
>> attribute must have no more than two characters, what do you do?
> > Restrict it to one or two characters, obviously. Wouldn't you? >>>>
>>>> Thanks for any insights into database attribute length constraints,
>>>> their purpose (is it related to output with fixed fonts, database
>>>> performance, size or what?), and any correlation to implementations
>>>> (again, however flawed) of the RM,
>>> The issue has nothing to do with the relational model.
>>
>> I know nothing of how dbms products are designed internally.
The self-aggrandizing ignorant knows nothing of any other aspect of database management either. Doesn't the above admission strike everyone as redundant?
I have
>> this idea that possibly the fact that everything in XML, Pick, and
>> elsewhere is ordered gives them more of a likelihood of permitting
>> variable length and handling it well since you can tag-delimit values.
So, the self-aggrandizing ignorant doesn't know anything about the topic but "has an idea that" somehow extremely primitive text file formats and file processors have some advantage due to order. Can anyone think of a better example of blind faith?
And the moron assumes those who dismiss her for her stupidity and ignorance do so on religious grounds.
>> Is there possibly something about how RDBMS's would need to allocate
>> space for columns or something that might make it advantageous for
>> there to be a max length?
No, that's not relevant. The R in RDBMS is purely logical and imposes no such limitations. Lazy-assed programmers introduce size limitations to make their jobs easier. That has nothing to do with the logical data model (not that the self-aggrandizing ignorant has a clue what one of those is.)
The other thought I had was that working
>> with sets and joins might mean that implementing with everything
>> variable length could be problematic for allocation of space somehow,
>> but I (obviously) don't know.
Obviously.
>>> if there is such. Could a vendor
>>>
>>>> write an implementation of the RM where length constraints are as rare
>>>> as they are in the conceptual model without introducing performance or
>>>> any other issues?
> > There are already many products that can do that. But adding the > phrase "without introducing performance or other issues" is naive. > You should know better; everything has a cost. >
>> Is your answer to this question "yes"?
Yes.
If so, why hasn't anyone done
>> so?
Prove that nobody has done so. Even MS Access and Dbase III have binary and text fields of unlimited length.
It seems it would help with the goal of decoupling the physical
>> from the logical. If there is no conceptual reason for a limit,
>> couldn't the dbms take care of such physical issues?
Yes, of course.
> This is not what others are referring to when they mention separation
> between logical and physical design.
It is and it isn't. Certainly, one would prefer to separate physical
>> I'm looking right now at all of the aspects of a conceptual design that
>> need to be adjusted in what I was calling the logical (data) design
>> (the one implemented by means of a person or program interfacing with
>> the DBMS) and how such designs are done differently using the RM (or an
>> implementation thereof, however flawed) or MV.
> > That's a step down the wrong path. How could any subsequent design > effort change the conceptual model? It's either complete and correct > -- or it isn't. > >
>> Thanks for your help. --dawn
>>
Received on Sun May 28 2006 - 05:41:12 CEST
