Re: Hashes from composite keys?

From: Bob Badour <bbadour_at_pei.sympatico.ca>
Date: Fri, 23 Jul 2010 18:10:22 -0300
Message-ID: <4c4a0542$0$11841$9a566e8b_at_news.aliant.net>



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.

> 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. Received on Fri Jul 23 2010 - 16:10:22 CDT

Original text of this message