Re: Hashes from composite keys?

From: Bob Badour <>
Date: Fri, 23 Jul 2010 19:48:20 -0300
Message-ID: <4c4a1c38$0$11849$>

Karsten Wutzke wrote:
> On Jul 23, 11:10 pm, Bob Badour <> wrote:

>>Karsten Wutzke wrote:
>>>On 23 Jul., 22:22, Bob Badour <> wrote:
>>>>Karsten Wutzke wrote:
>>>>>what are the best practices for generating hash codes from composite
>>>>>keys? I need to mimic something like what a composite index does. In
>>>>>fact, it's for mapping between relational keys and object IDs.
>>>>>Can anyone point me into the right direction please?
>>>>Yes, I can point you in the right direction. Simply turn completely
>>>>around from what you are trying to do, and go in the opposite direction.
>>>One of the most useless comments on the Usenet I've read in my whole
>>>life. Congratulations. You must have a lot of time for writing such a
>>>crap. If you think you are cool, you're not.
>>Cool? No. Educated and well-informed. The cool kids drop out of
>>highschool to shovel asphalt for paving companies. Being educated and
>>informed is pretty much the antithesis of cool.
> You sounded cool. Well, I'm educated, too, but not well-informed on
> that particular topic. Sorry for asking.

Why be sorry for asking? When an answer doesn't match one's expectations, I highly recommend re-evaluating one's expectations before rejecting the answer. The best answers are often surprising answers.

> I bet you've never asked
> anybody in your life to become well-informed...

You would lose the bet.

>>>Anyone else with a useful tip? XORing the individual elements?
>>I question your ability to recognize a useful tip. No doubt one or more
>>of the cranks or trolls from my twit filter will pipe up to offer
>>something more closely matching your expectations. It will have negative
>>utility, but I expect you will feel gratitude for it regardless of the harm.

> ...
> Karsten
Received on Fri Jul 23 2010 - 17:48:20 CDT

Original text of this message