Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

don't complete update if no change?

Is it possible to carry out an update operation on a space POJO that will only successfully perform the update if it results in a change to the POJO, e.g. if a client is trying to update a POJO with a version of the POJO that is identical to the version in the space, then the update is not peformed, and so unnecessary update events are not triggered? The client could implement this functionality by reading the POJO from the space and comparing before attempting the update, but I was wondering if the space proxy already provides this functionality?

asked 2014-12-05 08:41:38 -0500

jfrench gravatar image
edit retag flag offensive close merge delete

Comments

How is this different from your other question: "Only update space POJO if it will change?" Did you mean to post it twice?

phalverson gravatar imagephalverson ( 2014-12-09 11:25:42 -0500 )edit

It's the same question, didn't mean to post twice. Apologies.

jfrench gravatar imagejfrench ( 2014-12-17 03:51:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

This behavior isn't provided out of the box.

You could use a projection to reduce the impact of the queries if you had knowledge of which fields have changed or perhaps read back just a timestamp on the field (last Updated) to determine if a write was necessary.

answered 2014-12-06 13:40:24 -0500

jasonnerothin gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-05 08:41:38 -0500

Seen: 50 times

Last updated: Dec 06 '14