About sequence

release

2.6.2

... key field of an abstract type. Fixed JDO sequence names to be fully qualified names (issue #186 ). Fixed accessing a package level JDO sequence using getSequence ( issue #186 ). Fixed false ...

 
forum_thread

Optimization Question

One of our uses for your ObjectDB software is in maintaining the current state of a large number of data objects called tracks. These tracks change very frequently over time (every 10-15 seconds is not unreasonable), but they are also very large complex data structures so it's extremely difficult to identify exactly what fields have changed from one update to the next. Currently the following sequence executes when a track update comes in: - If it’s a new track simply add it to the database.... from one update to the next. Currently the following sequence executes when a track update comes in: - If it’s a new track ...

 
issue

JPQL Subqueries (JPA 1.0)

The JPQL (Java Persistence Query Language) supports defining subqueries, which are nested queries that are embedded in other queries. Subqueries are currently not supported by ObjectDB, and as a workaround, you can use a sequence of two or more queries, where the results of one query serves as a parameter in the next queries. ... supported by ObjectDB, and as a workaround, you can use a sequence of two or more queries, where the results of one query serves as a ...

 
api-jdo

Sequence.extensions

Vendor extensions for this sequence.(Annotation Element of javax.jdo.annotations.Sequence)

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. ... @ SequenceGenerator ( name = "PROJECT_SEQUENCE" , sequenceName = "PROJECT_SEQUENCE" , allocationSize = 1 , initialValue = 0 ...

 
api-jpa

SequenceGenerator.schema

(Optional) The schema of the sequence generator.(Annotation Element of javax.persistence.SequenceGenerator)

 
api-jpa

javax.persistence.GeneratedValue

Provides for the specification of generation strategies for the values of primary keys.(Annotation of JPA)

 
forum_thread

@SequenceGenerator and single id in whole database

Hi, I have a question about @SequenceGenerator. I have separate @SequenceGenerator in each of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any other way to use separate generators for each entity, so that each entity uses its own sequence just like in RDBM?... for each entity, so that each entity uses its own sequence just like in RDBM? edit ...

 
api-jpa

SequenceGenerator.sequenceName

(Optional) The name of the database sequence object from which to obtain primary key values.(Annotation Element of javax.persistence.SequenceGenerator)

 
forum_thread

Master database switching to read-only mode, possibly caused by slave failure

We had a database failure causing a production outage. Both master and slave databases have failed, slave became unresponsive and the master switched to read-only mode. By the look of it the slave database failed first and possibly caused the master to switch to read-only mode. The sequence of events was: ... caused the master to switch to read-only mode. The sequence of events was: 13:20 - our monitoring reported GC time per ...