Last active
May 9, 2017 13:54
-
-
Save salekseev/012e5cba3ae13bcbc7428e104b07f6cc to your computer and use it in GitHub Desktop.
problem: storing mac address (6 bytes) in rdbms efficiently
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
problem: storing mac address (6 bytes) in rdbms efficiently | |
options: | |
char(6) | long/bigint (8 bytes) | char(12) | |
byte array | decimal representation | hex characters in ascii | |
--------------------------------------------------------------------- | |
efficiency: n | efficiency: n+2 | efficiency: n+6 | |
terminal safe: n | terminal safe: y | terminal safe: y | |
human readable: ? | human readable: y | human readable: y | |
range find: custom | range find: builtin | range find: custom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment