About Data Source

forum_thread

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! ... & demo presentation which show problem with long data base open operation issue. Could you check from ObjectDb side which ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... port = "6136" max = "100" /> <data path = "$objectdb/db" /> <!-- <replication ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Is it possible to remove parent/child entities without refresh?

We have a big object tree in our project. If I use the entityManage.remove method a entityManager.refresh is necessary in order to have an updated object tree in memory. But entityManager.refresh is too slow for our project. Do you know a possibilty to remove parent/child entities without entityManager.refresh after the entityManager.remove operation? I have searched for a solution with the following unit test (See testRemoveVariant2()). But my approach works correctly. Do you have an idea? ... the problem, could you please explain in which way data in memory is not up to date after remove and how exactly  ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ... Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments . ...

 
forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: ... can be ordered by the index rather than by accessing the data. If you add a new index to an existing database use the Doctor to create a ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Spring MVC Errors

I try to import the project from the tutorial but when doing so I get errors: 1. http://i.imgur.com/tbIsj.png and then when I try to start it anyways I get things like thaat: 2. http://i.imgur.com/G7UVu.png any ideas ? I installed m2eclipse plugin and Maven Integration for WTP and then I import Maven project from disk and this is what I get ... ;( ... got 2 elements sometimes 7 elements and sometimes not full data when it should show 8 elements every time so I decided to search objectDB ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Unable to convert 1.x odb file to 2.x

Hi, my company is just about to switch from ObjectDB 1.04.2487 (SE) to ObjectDB 2. So I downloaded the objectdb-2.5.5_02, activated it with our licence, enhancing went well, but then on converting 1 of the DB files I got this error: ... references have been found:   Type eu.extech.quant.data.user_attribute.UserAttributesMap, field "map" -> 12 broken ... 10:58:29 #53 type.registry] New type eu.extech.quant.data.user_attribute.UserAttributesMap [2014-05-06 10:58:29 #54 type] Type ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Connection performace after upgrade to objectdb 2

Hi, I have a problem with objectdb 2 when I tried to get the PersistenceManagerFactory and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(getProperties(physicalPath, objectName), JDOHelper.class.getClassLoader()); takes only 3ms PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2, the same instructions take respectively : 257ms and 238ms which is very expensive. ... on many odb file, the idea is to be able to dispaly data from any of them at any time later. So I need to create ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ... Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments . ...

 
issue

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO file. Unfortunately, it doesn't seem to be supported consistently. It appears to work only in the situation that a new odb file has just been created AND something has been persisted to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null. Code to reproduce: ... jdo PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN" "http://java.sun.com/dtd/jdo_2_0.dtd"> ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ... Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments . ...

 
forum_thread

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)>1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: ... while trying to load all the entity objects into a memory data structure is expected. You may try splitting the query into two ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

How to have a distribuited GWT application with ObjectDB and Spring?

Hello to everyone! ... fine. The problem is to access the other objectdb to CRUD data... edit ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...