About size

issue

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... We gonna work with ObjectDb databases which may have size more than 5Gb and opening database time is very critical for us! ... Maximum file size: 32 MB 0 ...

 
forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: ... int indexR = random. nextInt ( questions. size ( ) ) ;   Vifr_dic value = ... Maximum file size: 32 MB 0 ...

 
forum_thread

Replication failed

Dear support members, I am trying to set up a replication url in objectdb.conf and have the the following error in the log files: [ObjectDB 2.3.4] javax.persistence.PersistenceException Failed to connect to server 127.0.0.1:6136 (Connection refused) (error 522) at com.objectdb.jpa.EMF.createEntityManager(EMF.java:176) My objectdb.conf: ... >   <database > <size initial = "256kb" resize = "256kb" page = "2kb" ... Maximum file size: 32 MB 0 ...

 
forum_thread

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. In JPA / Hibernate world it exist some tests demonstrating how to choose the best strategy. For example : http://zeroturnaround.com/rebellabs/how-to-use-jpa-correctly-to-avoid-complaints-of-a-slow-application/ In this article,join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. ... To finish, wake up the Lazy collection (by getting size() of Collection) is a very weak solution. In case of millions ... Maximum file size: 32 MB 0 ...

 
forum_thread

Join performance in Objectdb

select count(e) from Meta e, ImageNet i, Page p where e.idImage=i.id and e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA ... bug. The aggreiation of Objectdb seems to be based on the size of fields of entities: JPQL> select count ( e. id ... > The aggreiation of Objectdb seems to be based on the size of fields of entities. I tried to repeat this with the following ...

 
forum_thread

connection pooling

how do you handle connection pooling?  I don't understand how to open and close connection, or reconnect. I've referenced the manual here, but where does this go:   The <connection> element   <connection port="6136" max="100" /> The <connection> element specifies how clients can connect to the server: ... By default the maximum connection pool size is 50. You can change it in the persistence.xml file , for ... Maximum file size: 32 MB 0 ...

 
forum_thread

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable { ... for ( int i = 0 ; i<attendeeList. size ( ) ; i ++ ) { if ... Maximum file size: 32 MB 0 ...

 
forum_thread

More Efficient Primary Keys

Can you give us a recommendation as we can represent the Key (UUID) most efficient? Both in terms of memory usage of the database files, memory usage of the JVM and efficiency for queries. We already need the key before the entities are persisted so that we can build even references. ... In both cases it is a composite primary key with the same size and structure. (b) requires instantiation of an additional Java object ... Maximum file size: 32 MB 0 ...

 
forum_thread

Possible issue with timestamps

Hi, If I query doing something like: select c from CDI c where c.creationDate > {ts '2012-03-29 11:00:00} and c.creationDate < {ts '2012-03-29 12:00:00'} the test fails. Its ONLY for 12:00:00. When I started digging I found that if I queried 00:00:00 to 00:25:00 and then did 12:00:00 to 12:25:00 I got IDENTICAL results. For some reason 12:00:00 is being treated the same as 00:00:00. All other hours seem to be fine. ... ) ; assertEquals ( 1 , results. size ( ) ) ; assertEquals ( "first1" ... ) ; assertEquals ( 1 , results. size ( ) ) ; assertEquals ( "first16" ...

 
issue

ArrayIndexOutOfBoundsException: -1

I've attached a test which fails with the error "ArrayIndexOutOfBoundsException: -1". It runs 10 threads which create and persist objects. The objects are based on application objects so its not a single class test I'm afraid but it is standalone. I'm running as follows: java -classpath objectdb.jar;test.jar PersistTest I've attached the test jar, a jar containing the source and the odjectdb.conf. ... You cannot disable that cache since it has a minimum size even if you request zero size. In some situations (e.g. when using flush that is followed by ...