About URL connection

forum_thread

Replication Issue

Hi, I am trying to use replication for this first time - so most likely I am doing something wrong. I have server on which I run my master DB server java -cp objectdb.jar com.objectdb.Server start -conf objectdbMASTER.conf on the same server I run a java program - which is writing objects every second a database KAKI.odb - here is the code: ... = "0" /> <url-history size = "50" user = "true" password = "true" ... <server > <connection port = "6000" max = "100" /> ... /> <replication url = "objectdb://12.345.678.910:6001/KAKI.odb;user=admin;password=admin" ...

 
forum_thread

Compare old and new schema

Hello, I have an old database file with important data. Over time, I have modified some of the entity classes but did not keep track of the changes. Some fields may have been renamed or removed, some classes may have been renamed or changed package. Is there a way for me to check what "format" the entity classes have in the old database file and compare that with the new classes definitions?   Thanks, farid ... with. To do so, I create a new URLClassLoader with a URL pointing to the folder containing my Class hierarchy like so:  ...

 
manual

[ODB1] Chapter 1 - About ObjectDB

Describes the main features and editions of ObjectDB 1.0 for Java/JDO.... other can be done simply by changing a single string (the connection URL), because the JDO API is the same for both modes. 1.3  ObjectDB ...

 
forum_thread

Replication error on slave restart

I'm trying to enable replication on master server that was running with "recovery" enabled previously. I have copied database file to slave... and so on by manual. It worked fine. But if I restart slave server: ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... </schema > <server > <connection port = "6136" max = "100" /> <data ...

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... >   <server > <connection port = "6136" max = "100" /> <data ... = "$objectdb/db" /> <!-- <replication url="objectdb://localhost/test.odb;user=admin;password=admin" /> --> ...

 
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! ... ms Also checked to open DB without network connection (disabled local connection). Results below: 1 / 29 ... <network inactivity-timeout="0" />   <url-history size="50" user="true" password="true" />   <log ...

 
forum_thread

Is there a function of "drop table" or "delete from table"?

Besides the em.remove() one by one, is there a function of "drop table" or "delete from table"? TIA ... forum thread  and the explanation of the ;drop connection url parameter in the manual . About your other question - I will ...

 
forum_thread

First query takes 4+ minutes to complete

Hi, we are evaluating ObjectDB 2.5.1_04 in embedded mode hoping to replace SQLite in our application. We observed that in our case it takes on average more than 4 minutes to complete the first SELECT query that we run on the DB which contains about 320,000 records of a single type of object. SQLite in comparison responds within few seconds on average with the same number of records. We hope to receive your recommendation on how to improve this result with this post.   Test System ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... >   <server > <connection port = "6136" max = "100" /> <data ...

 
issue

File lock exception on odb$

Not sure if this is an objectdb issue or not but I thought I'd raise it just in case. We had a server failure which caused an unexpected reboot. As a result, the application services which use objectdb were not shutdown properly which in turn meant we had several odb$ files left behind. I had assumed that objectdb would reprocess these when the services restarted but instead we got the exception below. ... unable to connect - is it still available with the same connection details? edit ... is : <property name="javax.persistence.jdbc.url" value="$objectdb://localhost:8080/db/guests.odb"/>   ...

 
forum_thread

locks on pure query activities

analyzing the dynamic behavior we can see from the thread dump that a lot of our threads that are just doing simple queries show locks like these (question is: why there are locks and how could we get rid of that):   log1:   ... inactivity-timeout = "0" /> <url-history size = "50" user = "true" password = "true" ... >   <server > <connection port = "6136" max = "100" /> <data ... enabled = "true" /> <!-- <replication url="objectdb://localhost/test.odb;user=admin;password=admin" /> --> ...