Quote:
|
Originally Posted by kalmon
I know it is possible to do any of those and that there are pros and cons to them but which one is best?
|
the method where the pros and cons more closely fit
your particular needs
for searching, the INTEGER method is the fastest, because you always search top-down, i.e. you always start with the first octet, then the second, etc.
you never search for all IPs where the 3rd octet is 155 -- that'd be silly ™
the top-down search translates very easily into integer ranges
regarding "proper way to store data (4 fields that technically hold data that 1 could)" this depends completely on what kind of data it is
4 fields instead of 1 is
much better if, for instance, you're talking about street, city, state, country