You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Steve Scheck <ss...@silverspringnet.com> on 2016/02/03 23:55:42 UTC
IgniteAtomicSequence persistence
Hello,
Is there any automatic way or recommended pattern to persist an IgniteAtomicSequence?
Thanks.
Re: IgniteAtomicSequence persistence
Posted by vkulichenko <va...@gmail.com>.
Steve,
Yes, I was just going to propose the same. You can use IgniteCache.invoke()
operation to atomically increment the value and configure the cache store
that will persist on each update.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IgniteAtomicSequence-persistence-tp2826p2831.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: IgniteAtomicSequence persistence
Posted by Steve Scheck <ss...@silverspringnet.com>.
What about creating a cache with parameter <String, Long> with keys being the name of the sequences, that is itself persisted with a CacheStore implementation?
On 2/3/16, 4:23 PM, "Steve Scheck" <ss...@silverspringnet.com> wrote:
>I’m trying to migrate some tables that reside in a relational DB into Ignite caches with write-behind persistence. The cache keys will correspond to sequence columns from the former relational schema. So I need a way to generate unique sequence numbers.
>
>Thanks.
>
>
>
>
>
>On 2/3/16, 4:08 PM, "vkulichenko" <va...@gmail.com> wrote:
>
>>Hi Steve,
>>
>>The atomic sequence can't be persisted. Can you describe what's your use
>>case and what you're trying to achieve?
>>
>>-Val
>>
>>
>>
>>--
>>View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IgniteAtomicSequence-persistence-tp2826p2827.html
>>Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: IgniteAtomicSequence persistence
Posted by Steve Scheck <ss...@silverspringnet.com>.
I’m trying to migrate some tables that reside in a relational DB into Ignite caches with write-behind persistence. The cache keys will correspond to sequence columns from the former relational schema. So I need a way to generate unique sequence numbers.
Thanks.
On 2/3/16, 4:08 PM, "vkulichenko" <va...@gmail.com> wrote:
>Hi Steve,
>
>The atomic sequence can't be persisted. Can you describe what's your use
>case and what you're trying to achieve?
>
>-Val
>
>
>
>--
>View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IgniteAtomicSequence-persistence-tp2826p2827.html
>Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: IgniteAtomicSequence persistence
Posted by vkulichenko <va...@gmail.com>.
Hi Steve,
The atomic sequence can't be persisted. Can you describe what's your use
case and what you're trying to achieve?
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IgniteAtomicSequence-persistence-tp2826p2827.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.