directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: [LDAP] Mimic RDBMS auto-increment feature in LDAP
Date Wed, 14 Jan 2009 06:46:21 GMT
David Boreham wrote:
> Emmanuel Lecharny wrote:
>> David Boreham wrote:
>>> I would recommend not trying to use the auto-increment primary key 
>>> approach with a DS.
>>> It won't work.
>>> Instead change the data model to use a UUID in place of the 
>>> monotonic increasing integer.
>> That's an option, except when your client need to manipulate an int 
>> or a long, as an UUID will be 128 bits long :/
> You can try tricks like truncating the UUID to 32-bits but it's best 
> to re-design the client to not have this restriction.
>
> At some point you have go also consider giving up and answering the 
> statement 'but I can do xyz with a
> relational database' with 'well, then use a relational database'. 
> Except the RDBMS would have exactly the
> same problem with the integer ID when you try to deploy replication or 
> partitioning...
The thing is that Pierre-Arnaud is moving away from a RDBMS system ;) 
But the applications are using Integers and Longs for IDs...

-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message