About size

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" ...

 
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

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 ...

 
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

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

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

PostUpdate collection null

Hello, I have an entity MyEntity with a collection attribute myCollection. I have an EntityListener on MyEntity with a @PostUpdate method. When I try to access myCollection from the PostUpdate method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. The collection is eagerly fetched. public class MyEntity {     @OneToMany(fetch=FetchType.EAGER)     private ArrayList<OtherEntity> myCollection = new ArrayList<OtherEntity>(); ... System. out . println ( myCollection. size ( ) ) ; } } ... Maximum file size: 32 MB 0 ...

 
forum_thread

ObjectDb.conf Defaults

Is it expected that all objectdb.conf entries are optional and when they are not provided defaults are used?  It appears that that is the case for all documented entries, except for 4 entries under "General". ... > < !-- ok if missing <url - history size = "0" user = "false" password = "false" / > -- ... Maximum file size: 32 MB 0 ...

 
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 ...

 
forum_thread

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy looked like this: class contact.Contact class customer.Customer extends contact.Contact class member.Member extends customer.Customer We have database records within each class type (Contact, Customer and Member). ... has no records either. However, looking at the DB-Size, it still has the same size? The DB-Server has been properly restarted. All other classes ...