Makes sense. CacheStore needs to clear that transient information after writing the data to the persistent store. I'm assuming it doesn't require any synchronization with the entry processor in the write-through scenario because the key is still locked in CacheStore.
How will it work in the write-behind scenario? Are writes blocked during persisting in the write-behind mode and it's safe to modify the value passed to the store after persisting it? On Fri, Sep 11, 2015 at 8:29 PM, vkulichenko [via Apache Ignite Users] < [email protected]> wrote: > mfronczyk wrote > How will it work with Persistent Store configured with write-through or > write-behind? Won't the whole value (16384 element array) be persisted > each > time a single entry of the array is modified? > > The whole entry will be passed to CacheStore.write(..) method and it's up > to your implementation what is actually persisted to the database. The only > issue I see here is that you need to know which elements were updated when > the store is called. I think you should add a transient field into the > value that will contain this information, update it inside entry processor > and then use inside the store to optimize persistence. > > -Val > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-ignite-users.70518.x6.nabble.com/Can-Ignite-be-configured-to-provide-an-array-like-replicated-and-durable-map-tp1304p1366.html > To unsubscribe from Can Ignite be configured to provide an array like > replicated and durable map?, click here > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1304&code=ZnJvbmN6eWtAZ21haWwuY29tfDEzMDR8LTIwNjU4OTMyNTc=> > . > NAML > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- MichaĆ Fronczyk -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-Ignite-be-configured-to-provide-an-array-like-replicated-and-durable-map-tp1304p1367.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
