Re: Why all the max length constraints?
Date: 28 May 2006 15:03:21 -0700
Message-ID: <1148853801.413000.42070_at_j33g2000cwa.googlegroups.com>
dawn wrote:
> You seem to think I'm arguing something when I think I am
> asking something.
> Honey, I'm just askin' a question based on an observation.
> If I knew the answer, I would not ask. I am not intending
> to make a claim, other than any that help me ask the
> question.
> I have no answer I'm driving at, but am trying to understand.
versus
> [I] adopted a "practice prejudice" for other models.
> I want to ... nudg[e] the practices toward sound theory
> and the theory toward best practices.
> > > > 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.
> > >
> > > I'm referring to run-time issues. Of course there
> > > would be a cost to change a product.
> >
> > Umm ... I'm fairly sure that JMD was /also/ referring to
> > the usual time (and space) costs. Not some type of
> > "product" inertia. Especially since he said believing
> > otherwise would be "naive" as of course
> > time/space/abstraction cost analysis is fundamental in
> > computer science.
>
> Yes, but it would be foolish to think that every change to
> a product would result in an increase in cost. Surely
> there are some that would result in a decrease.
Of course it would be foolish to think that! And neither I
nor JMD suggested it. What JMD tried to explain was that you
raised an equally naive requirement
> > > boost.
> >
> > This is totally misleading. /Runtime enforcement/ of
> > constraints /may/ reduce performance.
>
> Thus the word "could"
What else would we apply "max length constraints" to besides
attributes?? The max cardinality of tuples? of relations?
Honestly I was only thinking of attributes.
> it would be faster without specifying any space-related
> information, then please adjust accordingly as that was
> not my thinking.
No need to adjust because I have no idea what /other/
space-related information you were talking about besides
attribute values.
> Pick more efficient?
Is Pick a DBMS? Any DBMS running on any hardware available
today (that I can think of) can benefit from knowledge of
size constraints. Even allowing only string attributes, then
I can think of /numerous/ efficiency benefits to specifying
size constraints on the strings. Hence the suggestion you
study string implementations because there is a rich history
and wealth of information available. Another example is
specifying range constraints on numerical values. /Numerous/
optimizations there as well.
> is one you know, please try to explain it and I will try
> to understand your response, possibly by asking follow up
> questions.
> > 4) are unqualified to teach computer science anywhere
>
> I've claimed the latter before. I am not a computer
> scientist and have told my students that. I'm a long-time
> practitioner in IT, with degrees in Mathematics, not CS.
> ...
> I do not have enough understanding of what is under the
> covers of any dbms to know what the reason would be for
> the max length constraints on attributes.
I think that is the case. Perhaps not so much your style of writing as your style of "thinking".
> I could read numerous papers and learn enough so that I
> could produce an implementation of the RM myself, at which
> point I would know why I wanted those attribute length
> constraints. Alternatively, I could ask the question
> figuring someone might already know enough to provide me
> with a straight-forward response. Are all of the other
> questions in cdt or all of the valid ones such that
> answers would not come from any materials already written?
Alternatively, you could ask questions with humility and be
vigilant in recognizing your areas of ignorance.
> I've put out some guesses which could be completely wrong,
> but only to help get the question out there.
Congratulations! Still driving an FUV?
> drivng every dbms vendor who is attempting to base their
> design on the RM to end up putting these attribute max
> length constraints in while some who do not base their
> model on the RM do not have them.
Personally, I doubt it has anything to do with RM specifically.
> Maybe it is just tradition, maybe it has to do with the
> data model avoiding all ordering of data,
> maybe every software product everywhere really needs to be
> told by a human the individual max lengths for (4)each
> (4)value (3)for (12)optimization (8)purposes. (Yes, that
> was irritating, but might help make my question clearer)
> Do you know?
> > > > This is not what others are referring to when they
> > > > mention separation between logical and physical
> > > > design.
> > >
> > > I know ;-)
> >
> > Then please use terminology in a way consistent with the
> > community here. Why do you refuse to do this?
>
> I actually try very hard to do that.
You say you try very hard, yet you admit "[you] know ;-)" you were failing to do so. Inconsistent.
> For some things there are no common industry terms, or I
> am unaware of them, so I have to try to use English to say
> what I'm trying to say.
What matters in c.d.t I would think is not the "industry" as much as the c.d.t community consensus. Which you claim you already "know ;-)" so please use it.
> Did you fail to understand what I meant?
I was confused yes. It seemed to take longer than usual to understand.
> Do you have a better way for me to write it?
You claim to "know ;-)" the community consesus. Employing it would be satisfactory.
- Keith --