Apparently I need to put out some more of this stuff


I seem to be getting email and a lot of searches and hits on bit masking (or bitmasking), so I guess I'll put out some more on this topic. I think it is an interesting technique and apparently others do as well. I first saw this in action in the RDBMS in the late 90's during the period when Match.com was moved from SFO to Dallas. Don Bishop, who I affectionately refer to as my mentor, is great at the technique and showed me many of the ins-and-outs while we worked together at Match and One And Only. Essentially, bitmasking, whether it be in the database or in a procedural language, can be in one or two forms: 1) bit cramming, and 2) traditional representations of values. For the sake of not giving you a lousy definition of it, go to Wikipedia and see what they have to say.

Give me a week or two and I'll see what I have. If you don’t like the technique, send mail and let me know. If you like it, send mail. I’m not for or against anything in particular until I see how it is used. In a data warehouse with a billion rows, no I probably wouldn’t use any masking. Other implementations maybe, and most of the time probably not. Why do it then, you ask, or waste time “bit fiddling” [1]?  ‘Cause it rulz!

Lee

 

-------------------------------------


Guess I better brush up a tad on it. Not sure if I remember how...


 

del.icio.us Tags: ,,,,,,,,,

[1] Joe Celko (nd). (Search the web, I can’t remember where he said this).


Posted in:   Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog