Re: Can relational alegbra perform bulk operations?
Date: Wed, 30 Sep 2009 05:34:39 -0700
Message-ID: <4AC3505F.6080208_at_Republic.com>
compdb_at_hotmail.com wrote:
> Of course optimizers use algebraic identities to rewrite.
> They just also use other information like size and indices
> to create a tree with some optimized property.
> The biggest time expense tends to be
> secondary storage page access.
>
> It might seem such things have to be implemented as loops,
> but it all depends on your implementing machine.
> Maybe it is a parallel processor.
> If you want the longest stick of spaghetti you just hold
> them all upright on the counter.
> If relational algebra were presented properly you would find that
> first of all it is an algebra schema,
> since every set of types produces a different algebra;
> that those algebras are "many-sorted", the sorts being relations,
> attributes, sometimes attribute lists, sometimes quoted-expressions,
> and the types;
> and that you would have additional operators like
> ONE_BY_ONE_RELATION_type(ATTRIBUTE, value) returning a relation
> and VALUE_type(relation) returning a value of the type.
> (You don't need to have explicit tuples.)
Indeed. Date basically argued that SQL DBMS was lacking in proper type & operator support. A part of reason of why I'm asking those questions is to help me understand how did SQL end up the way it is right now and why relational model wasn't more closely adhered to. I had latched on the notion that it had to do with that relation model (as far as I know about it via Date's book) didn't say much about how to optimize the evaluating of given expression so it's computationally cheaper to process the given expression. Received on Wed Sep 30 2009 - 14:34:39 CEST