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

Ask Your Question
0

Transient objects in LRU space

Hello,

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 -0600

Alexey Serdyuk gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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 -0600

Ester gravatar image
edit flag offensive delete link more

Comments

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 gravatar imageAlexey Serdyuk ( 2016-10-31 07:05:53 -0600 )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 gravatar imageEster ( 2016-10-31 07:26:49 -0600 )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 gravatar imageAlexey Serdyuk ( 2016-10-31 08:00:29 -0600 )edit

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

Ester gravatar imageEster ( 2016-10-31 08:05:19 -0600 )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

Stats

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

Seen: 1,003 times

Last updated: Oct 31 '16