About remove

forum_thread

Indexing a field results in internal Exception

I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index annotation to the field I eventually end up with an ObjectDB internal exception.  This is reproducible, as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might result in this exception? ... as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might ... in either of them, so you can stay with JPA and just remove the ORM metadata when switching to ObjectDB. ...

 
issue

InternalException during producer/consumer scenario

Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a range of potentially complex criteria. 2) The number of objects produced can be potentially exceed available memory so can be held on disk within the objectdb file. ... put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main ... at com.objectdb.jpa.EMImpl.remove(EMImpl.java:377) at ... at com.objectdb.jpa.EMImpl.remove(EMImpl.java:374) ... 4 more   Exception 2: ...

 
issue

Different behavior for two equal queries

Hi, I've got two equal queries though they behave differently: SELECT FROM com.quasado.foundation.communication.contact.individual.IndividualContact $1 WHERE (($1.organisation.name LIKE '%Q%')) This correctly returns one entry from my database ... the results of step 2by:   $1. [Step 4] Remove duplicates from the groups of step 3. [Step 5] Apply selection and ... the results of step 26by:   $1. [Step 28] Remove duplicates from the groups of step 27. [Step 29] Apply selection and ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: #1 2013-01-02 18:39 Hi, I need to change field type in our model from long to String. After changing filed type in our model ...

 
manual

Strings in JPQL and Criteria Queries

Explains string expressions in JPQL queries, including LIKE, LOCATE, LOWER, UPPER, TRIM, CONCAT and SUBSTRING. String values may appear in JPQL queries in various forms: as  string literals - e.g. 'abc' , ''. as parameters - when string values are assigned as arguments. as  path e ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... Once the error is hit, it keeps on happening and until I remove the enhancement (I do this build time with maven). First, for ... issue in client/server mode. The issue persists until I remove the offending property update (ore disable the @PreUpdate). ...

 
forum_thread

Slow searching with two indexes

I'm running queries on a large database (tens of millions of objects), and I'm running into a performance problem using two indexes.  An entity I'm querying has two indexed fields - one is the primary key (id) and so is different for each object, and the other is an object reference that only has a few tens of different values.   When I query by just the primary key, it's (of course) extremely fast, but when I also query using the other key, queries can take minutes. #1 2016-11-15 12:01 I'm running queries on a large database (tens of millions of objects), and I'm running into a performance ...

 
issue

ArrayIndexOutOfBoundException

Hello, we got this exception when using ObjectDB: ... weekend we ran intensive tests of concurrent persist/find/remove/update operations, but unfortunately we couldn't reproduce these ...

 
forum_thread

Apparent Lazy Loading issues.

Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two more. #1 2011-12-19 06:18 Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two ...

 
forum_thread

The server cannot start in CentOS

Hi, I try to run ObjectDB from Linux, but failed. My command is: java -cp objectdb.jar com.objectdb.Server start The result is attached. After typing the command, the system seems halting. ... 08:52 Try to remove the ip attribute in the configuration. The exception that ... 15:05 I do remove the ip setting in server's objectdb.conf, but when I run the ... The ip attribute is optional so you can simply remove it. This attribute is not included anymore in the default ...