Re: Create New Data Type
Posted by: Rick James
Date: April 03, 2012 09:45AM

The alternative may be to have a "database layer" that hides the 'implementation' from the application. As an example, let me talk about the bulky GUID (UUID): It is human readable as 36 hex characters and dashes. It _could_ be stored in BINARY(16) much more compactly. The 'layer' could hide that from the user.

IPv6 (the new, more complicated, IP-address naming system) also could benefit from a layer to turn what humans would like as VARCHAR(39) into BINARY(16). The former cannot be used in range queries; the latter can.

Would you care to share with me your "datatype"? I might like to invent some clever trick for you.

Options: ReplyQuote


Subject
Views
Written By
Posted
2699
March 24, 2012 09:31AM
1051
March 26, 2012 10:38AM
1053
March 26, 2012 04:50PM
842
March 26, 2012 12:26PM
1022
March 26, 2012 04:51PM
1028
March 26, 2012 06:55PM
947
March 31, 2012 05:04AM
1105
April 01, 2012 09:15AM
1015
April 01, 2012 12:11PM
Re: Create New Data Type
1029
April 03, 2012 09:45AM
1068
April 04, 2012 11:05AM
1174
May 14, 2012 12:21PM
1805
May 14, 2012 12:53PM
1097
March 26, 2012 01:32AM
1121
June 23, 2012 08:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.