Re: Hashes from composite keys?

From: Bob Badour <bbadour_at_pei.sympatico.ca>
Date: Fri, 23 Jul 2010 19:48:20 -0300
Message-ID: <4c4a1c38$0$11849$9a566e8b_at_news.aliant.net>


Karsten Wutzke wrote:

> On Jul 23, 11:10 pm, Bob Badour <bbad..._at_pei.sympatico.ca> wrote:
> 

>>Karsten Wutzke wrote:
>>
>>>On 23 Jul., 22:22, Bob Badour <bbad..._at_pei.sympatico.ca> wrote:
>>
>>>>Karsten Wutzke wrote:
>>
>>>>>Hello,
>>
>>>>>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?
>>
>>>>>Karsten
>>
>>>>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 Sat Jul 24 2010 - 00:48:20 CEST

Original text of this message