ObjectDB Database Search

1-50 of 69 results

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache . Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Cache.evict(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. Cache void evict (    Class cls ) Remove the data for entities of the specified class (and its subclasses) from the cache . Parameters: cls - entity class Since: Jakarta Persistence (JPA) 1.0

Database Management Settings

miscellaneous database engine settings: The cache attribute provides a hint for the amount of memory to use for caching database file pages. The max-threads attribute specifies the maximum number ... for the two query cache mechanisms that ObjectDB manages: The results attribute specifies the size

Soft Reference Object Cache Recommendation

to have my persistent objects be cached until the Java Virtual Machine (JVM) does a full Garbage Collection (GC ... cache .  I disable the L2 cache and use 1 MB for the ObjectDB Datastore page file cache ... , and a soft reference when the byte[] only needs to be read and sits in the cache until more heap RAM

Cache usage

after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump we suspect that the cache is really used (see heap dump attached), the RAM allocated ... . The config is attached as well. The question is: is the cache really used ? hgzwicker Hans-Georg

Level 2 cache not hit in @ManyToOne

. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache , but not for its field ... my app). "user" should also be taken from L2 cache , shouldn't it? Otherwise...it's a huge

Is 2 level cache in use?

Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml ... , so most of the data should be in cache . ODB and Tomcat are on different servers. lwalkowski Lukasz Walkowski

Using of Second Level Cache

was load and the entity MyEntity1 is taken in the second level cache , the other entity types not ... EmbeddedSystems The 2nd level cache stores object data (byte[]) rather than live entity objects ... ;2nd level cache as object IDs (PK) encoded in the  byte[] of a MyEntity1 instance

cache optimizing

we have a customer system with 64 GByte RAM, 16 CPUs on 8 sockets, the fastest possible ssd. we wonder if the cache and other settings can be optimized to get the most performance these are the current settings, please advice what we could optimize            

Setting and Tuning of JPA Queries

. This mode can be useful when the shared L2 cache is enabled and entities might already be available in the cache . Setting query hints (Scopes) You can set query hints in the following scopes, from

JPA Named Queries Annotations

, cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section

jakarta.persistence.EntityManager

of the persistence context (or first-level cache ) with the second-level cache , if any, may be controlled by ... transaction. Since: Jakarta Persistence (JPA) 1.0 CacheRetrieveMode getCacheRetrieveMode () The cache ... getCacheStoreMode () The cache storage mode for this persistence context. Since: Jakarta Persistence (JPA

jakarta.persistence.EntityManagerFactory

, an instance of Cache , allowing direct programmatic control over the second-level cache ... Persistence (JPA) 2.1 Cache getCache () Access the cache that is associated with the entity manager factory (the "second level cache "). Returns: an instance of Cache , or null if there is no second

virtual servers and one file

files access and only part of the virtual file is in the virtual server's cache . Have you ever heard ... and only part of the virtual file is in the virtual server's cache . Have you ever heard ... caching of the database file is the reason seems reasonable and maybe this could be solved

JQL-Update Queries fails with activated L2-Cache

a container the updated Entities. Scenario 1 : Disabled L2 Cache , updating elements using UPDATE ... database - Actual result: No changes are visble. Scenario 2 : Disabled L2 Cache , updating elements ... , but it is quite a mystery why " .clear() " has to be called. Scenario 3 : Enabled L2 Cache , updating elements

jakarta.persistence.TypedQuery.setCacheRetrieveMode(CacheRetrieveMode)

(    CacheRetrieveMode cacheRetrieveMode ) Set the cache retrieval mode that is in effect during query execution. This cache retrieval mode overrides the cache retrieve mode in use by the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.TypedQuery.setCacheStoreMode(CacheStoreMode)

(    CacheStoreMode cacheStoreMode ) Set the cache storage mode that is in effect during query execution. This cache storage mode overrides the cache storage mode in use by the entity manager. Parameters: cacheStoreMode - cache storage mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.StoredProcedureQuery.setCacheRetrieveMode(CacheRetrieveMode)

setCacheRetrieveMode (    CacheRetrieveMode cacheRetrieveMode ) Set the cache retrieval mode that is in effect during query execution. This cache retrieval mode overrides the cache retrieve mode in use by the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Returns

jakarta.persistence.StoredProcedureQuery.setCacheStoreMode(CacheStoreMode)

setCacheStoreMode (    CacheStoreMode cacheStoreMode ) Set the cache storage mode that is in effect during query execution. This cache storage mode overrides the cache storage mode in use by the entity manager. Parameters: cacheStoreMode - cache storage mode Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

How to Use a SF with extended Persistence Context?

) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.ejb3. cache ... ] at org.jboss.as.ejb3. cache .impl.backing.NonPassivatingBackingCacheImpl.create(NonPassivatingBackingCacheImpl.java:97) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.ejb3. cache .impl

jakarta.persistence.PersistenceConfiguration.sharedCacheMode(SharedCacheMode)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration sharedCacheMode (    SharedCacheMode sharedCacheMode ) Specify the shared cache mode for the persistence unit. Parameters: sharedCacheMode - the shared cache mode Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.sharedCacheMode()

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration SharedCacheMode sharedCacheMode() The shared cache mode. The default behavior is unspecified and provider-specific . Returns: the shared cache mode. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheStoreMode.USE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when written to the database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheStoreMode.REFRESH

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode REFRESH Insert/update entity data held in the cache when read from the database and when written to the database. Force refresh of cache for items read from database. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FindOption

Jakarta Persistence (JPA) Interface jakarta.persistence.FindOption An option influencing the behavior of EntityManager.find . Built-in options control locking , cache interaction , and timeouts . This interface may be implemented by custom provider-specific options which extend the options defined

jakarta.persistence.PersistenceConfiguration.validationMode(ValidationMode)

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration validationMode (    ValidationMode validationMode ) Specify the validation mode for the persistence unit. Parameters: validationMode - the shared cache mode Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheRetrieveMode.USE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheRetrieveMode USE Read entity data from the cache : this is the default behavior. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheRetrieveMode.BYPASS

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheRetrieveMode BYPASS Bypass the cache : get data directly from the database. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheStoreMode.BYPASS

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode BYPASS Don't insert into cache . Since: Jakarta Persistence (JPA) 1.0

can we use objected with ehcahce?

Hello , I need advanced caching system. Terracotta ehcache provides us , advanced distributed cache mechanism.   Can we use objectdb with ehcache ?   kadirbasol Kadir BASOL ObjectDB uses its own non pluggable cache , so currently it cannot be replaced with another cache

Cascading makeTransient

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. However those instances ... the application point-of-view. So as long as I keep B in application cache , also A is present in

ArrayIndexOutOfBoundException

:591) at com.objectdb.jpa.EMImpl.find(EMImpl.java:514) at com.ysoft. cache .objectdb.ObjectCacheDB.deleteInOpenTransaction(ObjectCacheDB.java:361) at com.ysoft. cache .objectdb.ObjectCacheDB.delete(ObjectCacheDB.java:356) at com.ysoft. cache .objectdb.ObjectCacheDB.delete(ObjectCacheDB.java:347) at eu.ysoft

Programatic configuration or configuration file loaded from classpath or file

the filesystem. I would like to enable the level2 cache for all entities:  https://www.objectdb.com/java/jpa/setting/entities#The_ cache _element a) Is it possible to configure this 

Optimistic locking: prevent version increment on entity collection attribute

don't have the cached Document and then find the Document by Id. - At that point the Document ... because I have the cached value of the Document returned.   @Entity public class Document { private

Exception on creation when running multithreaded

bug in transaction isolation or cache management. Anyway, a test case that reproduces the problem ... it has something to do with something being cached or not cleaned up after the creation.   I can't

RT Java application recording into 100DB run OOM after a few hours.

are per database. For example, the default cache size for database pages is 64GB per database, or 6.4GB per 100 databases, so it can easily exceeds your VPS RAM. If you must keep 100 databases open concurrently then you will have to reduce cache sizes, etc. support Support

Intermittent Server Shutdowns Due to Out of Memory (OOM) Issues

Configuration : ObjectDB Version: 2.8.8 VM Total Memory: 90GB ObjectDB Configuration: Processing Cache ... the server is started. I have already tried reducing the processing cache and monitoring system resource

after upgrade to 2.9.0 database destroys, urgent issue at our most important customer, production shutdown

) after restart and not reported by the Doctor are not corruption errors but related to cache , and will not cause data loss. These cache errors have been addressed by fixes in recent versions

Delete object from collection versus delete from JPQL

discard cached objects in the EntityManager and in the L2 cache .  support Support

Suspected memory leak

Support The screen shots may indicate a problem in the page cache (which keeps too many pages ... : The element - try reducing the number of threads and the cache size (notice that this setting

Duplicate Entity class names causes Exception in Query

.setFlushMode(FlushModeType.COMMIT); //q.setHint(QueryHints. CACHE _USAGE, CacheUsage

Objectdb recovery

(bypassing OS cache ). This should prevent any possible data loss of committed transactions. support Support

Speeding up reporting queries with size() on list

sec and 2.8 sec. On 'hot' db file  without query result in cache , execution time is between

Use temporary files to enable very large transactions

because the objects are kept in the first level cache of ObjectDB. In the forum thread http://www.objectdb ... the first level cache (by flush() and detach()). But an array of bytes, any ObjectDB memory ... after clear. And the heap reached its limit after x flushes. I believe the byte arrays are the db cache pages

Exception Failed to read from file

.PersistenceException Failed to read from file 'C:\SafeQORS\server\ cache \MainORSCache.odb' (error 117 ... ) at com.ysoft. cache .objectdb.ObjectCacheDB.deleteInOpenTransaction(ObjectCacheDB.java:361) at com.ysoft. cache .objectdb.ObjectCacheDB.delete(ObjectCacheDB.java:356) at com.ysoft. cache .objectdb

ClassCastException: com.objectdb.o.SLV cannot be cast to com.objectdb.o.RSV

.java:591) at com.objectdb.jpa.EMImpl.find(EMImpl.java:514) at com.ysoft. cache .objectdb.ObjectCacheDB.deleteInOpenTransaction(ObjectCacheDB.java:361) at com.ysoft. cache .objectdb.ObjectCacheDB.delete(ObjectCacheDB.java:356) at com.ysoft. cache .objectdb.ObjectCacheDB.delete(ObjectCacheDB.java:347

Deleting archive log folder causes exception

.java:686) at com.ysoft. cache .objectdb.ObjectCacheDB.search(ObjectCacheDB.java:522) at com.ysoft. cache

[ObjectDB 2.5.1_05] Unexpected exception (Error 990)

.jpa.JpaQuery.getResultList(JpaQuery.java:686) at com.ysoft. cache .objectdb.ObjectCacheDB.search(ObjectCacheDB.java:522) at com.ysoft. cache .objectdb.ObjectCacheDB.search(ObjectCacheDB.java:496) at ysoft

ObjectDB 2.3.6

Improved performance of collection and map size evaluation in queries. Fixed a critical bug in page caching (issues #610 , #621 , #625 ). Fixed a bug in optimization of non ASCII string indexes. Fixed the new query HOUR function to return hours as 0 to 23 (using 24-hour clock). Fixed a regression

retrieval again and again started

unspecific (any query that normally takes some ms). Could there be a problem somewhere in the cache