About Object Database

forum_thread

impossible to drop a table with 50 million objects

when trying to execute in explorer (max heap size 1GByte) delete from LogEntry l it comes up with a Java heap error after 20 minutes of executing. How to empty such a table ?     ... that returns part of the LogEntry instances in the database. Alternatively you may try using the undocumented setting of ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

How to check if an entity exists in a Database without loading it?

Hi, I am trying to speed up some code - where i check if the entity exists in order to make a decision. In Java - It looks like this (pk - is the primary key of the entity): MyClass find = em.find(MyClass.class, pk); boolean exists = find != null; Is there a way to check the existence without loading the entity? Thanks   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information to the Exception. Maybe: The class of the Entity and the id (Field annotated with @ID), or just the String representation of the entity. ... the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

database optimization

Hi, couple of questions regarding database optimization: 1) Noticed something odd with the level 2 cache configuration:    level2="0mb" -> 20 msec query    level2="2mb" -> 10 msec    level2="10mb" -> 40 msec Question: why is a larger level2 cache worse than no level2 cache, ie 10mb worse than 0mb? 2) (separate issue) I'm noticing that write queries are around 20-50x slower than read queries, on the same set of objects. ... Hi, couple of questions regarding database optimization: 1) Noticed something odd with the level 2 cache ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Why can't we persist an object with a field of type EnumMap in ObjectDB?

Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for fields like = HashMap<EnumType,Double> Thanks EKK ... Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

selecting objects that have a particular key/value in persistant HashMap

Hi, First post here and exploring ObjectDB.  I have an class Person which has a HashMap<String, String> called 'pMap' as a persistable field.  I am able to create Person objects and persist them as expected. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
issue

Can't open replicated database

I have a database running in server mode on port 6136 on server1 and server2. Each server has a replicated copy of the other servers database. I try to open the replicated on one database for a query (just read, no update) but it fails with the error below. The code I'm using is (user & password has been deliberately removed): ... 14:11 I have a database running in server mode on port 6136 on server1 and server2. Each ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Attempt to refresh a non managed entity object (error 635)

Just ran into a problem that I've not seen in 10 years of running ObjectDb: java.lang.IllegalArgumentException Attempt to refresh a non managed entity object (error 635) Nothing changed in my code, but I'm wondering if there is a problem with the config file, and /or my recent experiments with Intellij's JPA database explorer, which required me to use a JPA persistence.xml configuration file. (I was able to use to run objectdb queries from inside Intellij). ... to refresh a non managed entity object (error 635) Nothing changed in my code, but I'm wondering if ... and /or my recent experiments with Intellij's JPA database explorer, which required me to use a JPA persistence.xml configuration ... or implicitly by cascading) on a non managed entity object, i.e. a new entity object that has not been persisted yet, or a detached ...

 
forum_thread

embedded objects marked final not persisted.

Discovered that embedded objects marked final are not persisted. I'm not exactly sure why that should the case. Is this a bug?     ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

config file for embedded database

Hi, I'm going back to embedded mode after some time with client/server mode. Question: how does the embedded jar find it's config file? Dave ps: thanks for the improvements to the explorer - still need a way to view (view only) an open embedded database. ... - still need a way to view (view only) an open embedded database. edit ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...