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

Ask Your Question

Transient objects in LRU space


how transient objects behave in LRU space? In particular, when a default eviction strategy searches for candidates to be evicted, does it consider only persistent objects, or transient objects as well? An evicted transient object is obviously permanently lost.

asked 2016-10-31 02:44:29 -0500

Alexey Serdyuk's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Hi Alexey, Transient objects will not be evicted,but please have in mind the performance impact using LRU space has. We can further discuss it via support.

Regards, Ester.

answered 2016-10-31 06:57:29 -0500

Ester's avatar
edit flag offensive delete link more


Hi Ester, Do you mean a performance impact on write or on read? If on read, could we eliminate a performance penalty by using a read modifier MEMORY_ONLY_SEARCH?

Background: we have some business logic running co-located in a LRU space. Now we want to extend this business logic, and an extension requires storing some transient space objects. We could store them in a separate ALL_IN_MEMORY space, but than transient objects will not be co-located with the business logic, causing performance penalty on each access.

Alexey Serdyuk's avatar Alexey Serdyuk  ( 2016-10-31 07:05:53 -0500 )edit

For read MEMORY_ONLY_SEARCH will indeed help, but we will go to DB in write as well since we have to know if its write or update and send notification accordingly. Do you also use direct persistence in this space?

Ester's avatar Ester  ( 2016-10-31 07:26:49 -0500 )edit

Why will GigaSpaces go to the DB on write at all, if this object type is annotated as transient, that is, @SpaceClass(persist=false) which is the whole point of this question?

And yes, the space is using direct persistence.

Alexey Serdyuk's avatar Alexey Serdyuk  ( 2016-10-31 08:00:29 -0500 )edit

I was referring to write of the persistent objects. and the use of LRU.

Ester's avatar Ester  ( 2016-10-31 08:05:19 -0500 )edit

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


Asked: 2016-10-31 02:44:29 -0500

Seen: 1,172 times

Last updated: Oct 31 '16