About soft

manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... first level cache). The valid values are "weak" , "soft " and "strong " . Modified entities are always held by strong ...

 
forum_thread

Soft Reference Object Cache Recommendation

(Trying again.  Last post, ~50 minutes to compose, failed, possibly due to an attachment upload size limit being exceeded before the post attempt.  =(  ) ... to my large byte[] and instruct ObjectDB to use soft reference for its Level One (L1) object data cache.  I disable the L2 ... programs = "10" / > <cache ref = "soft" level2 = "0" / > <dirty - tracking arrays = ...

 
forum_thread

Entity Management Config questions

Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entitiesĀ  : <cache ref="weak" level2="0mb" /> The <cache> element specifies settings of the two cache mechanisms for entities:... first level cache). The valid values are "weak" , "soft " and "strong " . Modified entities are always hold by strong ... : What exactly is the difference between "weak", "soft", and "strong" references? ...

 
forum_thread

Storing Images and Object Pooling

Hello we have heard your product and we will plan to use your product on image database. Is it good to use ObjectDB as image database? Image database just screenshots of desktops.   2- ) On JPA as we know getting Result list returns ArrayList         List<SomeClass> xxx = query.getResultList(); ... the default reference cache configuration from weak to soft or strong. However, notice that objects are cached as objects per ...

 
forum_thread

How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache?

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   I tried to configure my objectdb.conf to give 256KB disk accesses and use PersistenceManager L1 ref=soft caching and datastore pagefile caching 1 MB (4 256KB sized pages).  The goal is to have frequent PersistenceManager L1 cache hit, then less frequent datastore pagefile cache hit, then when absolutely necessary, read/write from/to the disk, but in a 256 KB sized IO packets. ... give 256KB disk accesses and use PersistenceManager L1 ref=soft caching and datastore pagefile caching 1 MB (4 256KB sized pages).  ...

 
forum_thread

Caching/Paging Questions...

Greetings ObjectDB team, All below questions assume a very large database (~1,000,000,000 objects): Q1: Two queries with a big overlap between their result sets. If I query the first set and hold the results in memory somehow, would that speed up the execution of the second query since many of its result objects already created and reside in memory ?... context is cleared. For cache purpose - consider soft references, which are something in the middle between weak and strong ...

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. ... from its com.objectdb.o.ENT should become week or soft). The direct reference was added in version 2.6.2 in order to prevent ...

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context.... ObjectDB can be configured to use strong references or soft references instead of weak references . The contains method ...

 
forum_thread

ObjectDB's Database Doctor Incorrect Error Report

Am I reading this correctly?  It seems that Doctor is telling me that one of my objects is missing.  Looking at the database with ObjectDB's Database Explorer though seems to show that the reference to the object is good and that the object does indeed exist.   Output from Doctor Diagnose and Doctor Repair is attached.  So are the two databases and screenshots of Explorer showing the reference to the object and the existence of the object. ... 64KB if a larger page size is specified. We preferred a soft fix rather than an exception in this immediate fix, and we will consider ...