ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kasnacheev <ilya.kasnach...@gmail.com>
Subject Re: Id-generator
Date Thu, 10 May 2018 14:17:21 GMT
Hello!

For example, you could have an IgniteAtomicLong, call incrementAndGet() on
it. This way you can be reasonably sure that numbers are unique per cluster.

Regards,

-- 
Ilya Kasnacheev

2018-05-10 16:59 GMT+03:00 Rusher,Gary <gary.rusher@vizientinc.com>:

> Hi,
>
>
>
> Doing proof of concept.
>
> Having an issue with identity column, found it’s not possible, but there’s
> a workaround using the ID-generator.
>
>
>
> How does this work?
>
> If I have numerous clients attempting to write db records, won’t the
> id-generator fail to provide a unique value? Maybe?
>
>
>
> Can anyone point me to a simple example of how this works?
>
>
>
> Gary
> ------------------------------
> E-MAIL CONFIDENTIALITY NOTICE: The information transmitted in this e-mail
> and in any replies and forwards are for the sole use of the above
> individual(s) or entities and may contain proprietary, privileged and/or
> highly confidential information. Any unauthorized dissemination, review,
> distribution or copying of these communications is strictly prohibited. If
> this e-mail has been transmitted to you in error, please notify and return
> the original message to the sender immediately at the above listed address.
> Thank you for your cooperation.
>

Mime
View raw message