About size

forum_thread

Query to search for common elements in two separate collections.

I'm trying to work out the most efficient way to build a query that can compare two collections for identical members. Something like: "SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER OF :someCollection" Is something like this possible in the JPA spec? ... Maximum file size: 32 MB 0 ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... - name = "oe.seq_unit_id" allocation - size = "1" /> </ id > </ ... Maximum file size: 32 MB 0 ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. ... a hint, that driver should fetch data in packages of given size until whole result set is iterated.  What I'm thinking ... Maximum file size: 32 MB 0 ...

 
forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } ... removed as well, so, the TreeSet is reduced in size? Or do I end up having a number of null pointers in the Sets?  ... Maximum file size: 32 MB 0 ...

 
forum_thread

Optimistic lock failed

Hi, I frequently see exceptions during development such as com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object has version 1 instead of 3) Could you please explain what this means, and what I can do about it. Thanks you, Carl     ... <database > <size initial = "256kb" resize = "256kb" page = "2kb" ... Maximum file size: 32 MB 0 ...

 
forum_thread

Restrict by class in query

I have the following bit of code: ... a List<Folder> with two entries in it according to .size(). If I iterate using a foreach loop, I only get the folder. I can, ... 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 ...

 
release

2.4.0

... Improved performance of collection and map size evaluation in queries. Fixed a critical bug in page caching ... ) in range queries. Fixed cached result size evaluation to include query arguments ( issue #91 ). Fixed ...

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