ObjectDB Database Search

51-100 of 195 results

Add Indexes to existing Database

Hello ObjectDB Team I might have read the solution to this issue some times before, but I could not find an answer now. So sorry for bothering you. I want do add an @ Index annotation to a member of an existing Entity. This changes affects also existing databases. Is there any best practice

Composite index support collection

Composite index support collection

Unexpected exception during open the database

seems to be related to opening and closing the database for a short period, when indexes require ... class RenamedTestImpl {     ...     @ Index     private String scopeID;     ... } if we remove the @ Index annotation in the entity or we remove

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

an index is missing? It would help if you could upload a sample database and a simple test program ... the query. binitbhaskar Binit Bhaskar In the database that you uploaded there is an index on field logEntryId , which is inactive. An inactive index is usually the result of adding a new index

General Performance Issues Illustrated with a Specific Method

java.io.Serializable; import java.util.Date; import javax.jdo.annotations. Index ; import javax ... = GenerationType.AUTO) private Long id; private static final long serialVersionUID = 1L; @ Index @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER) private Person person; @ Index private String phn

Exception after update of indices of Entity class

Hello, I changed the index definition of an entity class from @ Index ()... to @Indices() and now I ... build. Could you please try opening the database after the index change with the most recent ... ) Best regards doppelrittberger Markus Ritter Thanks. Changing from  @ Index () ... to @Indices

alter table

column ... alter table add index ... TIA gzdillon Lai Yang There are no tables is ObjectDB. Anyway,   ... Evolution in the manual).  alter table add index ... Add the index definition and rebuild the database ... of "add column"; but I can not find anything about "add index " in the links you given. TIA gzdillon

Performance issue in a query due to compareTo calls

(AccessType.FIELD) public class TCStep extends Identifiable { @ Index private long stepNumber; @Basic ... = CascadeType.REMOVE) private Values valuesRef; }   @ Index (members = {"step.stepNumber"}) @Entity @Access (AccessType.FIELD) public class Values extends Identifiable { @ Index private long stepNumber

First query takes 4+ minutes to complete

({ : // Indices building trees in client applications @ Index (members={"startDate", "toExtension"}), @ Index ... prolancer Emil Andonov Please try adding an index :     @ Index (members={"startDate ... index is used. With this index your query execution time should be very good, but if it doesn't

significant performance decrease

indexes ? Queries become slower with larger databases if indexes are not defined, or not defined properly. Please provide more details about the query, relevant entity classes, indexes , database size, and query execution time. support Support Object class is defined like this ( indexes are defined

Support for case-insensitive indexes

I would like to request support for case insensitive string indexes . Case-insensitive search is a very common requirement and adding a separate field for every indexed field is a pain. Regards, Natalia.   natmaclin Natalia Levine

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

It seems that the query is executed using a composite index on the  mapFromCli field. Could you please provide details on composite indexes that include that field? Unexpectedly, one of the values in that index is NULL rather than multiple values reflecting the indexed fields. This may indicate

JPA query of a Set of terms

SearchIndex { @ Index SearchTerm term; @ Index Page page; } Now suppose I have an array of SearchTerm objects ... .setParameter("t1", t1).setParameter("t2", t2); By the way, since ObjectDB supports indexed collections ... { @ Index List terms; } In that case the query is simpler (and possibly faster): TypedQuery query

InternalException when querying indexed field using a list that contains duplicates

filter like this is used: ":ids.contains(originalId)" originalId is an indexed String field

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

Please check the attached database file. When running the Doctor, I get   Global Value Errors ------------------- [1] Unexpected last index ID: -119 (expected -116) Page Content Errors ------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75

Not releasing locked MST object

update (e.g. a new type is found) and automatic index rebuilding (e.g. a new index is found or indexes require rebuilding due to schema change). As a workaround, try disabling index rebuilding (update ... Thanks for the tip. I don't have the   element in my ObjectDB conf file, so I guess the index

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

still have another question. Have @Basic long types with @ Index instead of string types the same advantages as primary long keys. btc_es BTC EmbeddedSystems  Have @Basic long types with @ Index instead ... additional @ Index long field will not replace or help with an issue with the primary key (@Id

collection of embedded objects

when using embedded objects, but not always. support Support Is there any advantage to indexing collections ... =:value A is an Entity which has a ' Set set '. I clearly need an index on B.value . Do I gain anything from an index on A.set ? FastModel Ben Schreiber You cannot define an ordinary index on a field

Queries are slow on a large database

query needs 4 to 5 minutes to return a result. I have been adviced to use indexes ... have to scan the entire database file and is not using indexes . Therefore I think I am not doing ... . A composite index in which the first component is  logTestRunId and the second is Id

Performance in SELECT statement

;  private Object value; // for now just Double values     @ Index   ... processingCount;     @Enumerated(EnumType.ORDINAL)     @ Index ... is JBoss Wildfly 9.0.2. Classes are enhanced... regards, paddy paddy Patrick Gerhardt The index

ArrayIndexOutOfBoundsException

of the Doctor? Are there any errors except indexes that have to rebuilt? Type version #4 in a new database ... % 80% 90% 100% Index Errors ------------ [1] Index com.contextspace.datamodel.attribute.AttributeValue[name] requires rebuild.   - has 280 entries instead of 0 [2] Index com.contextspace.datamodel

Low performance when getting grove roots

an index for this field? Regards, Vladimir tsichevski Vladimir Tsichevski Of course. Setting indexes ... tsichevski Vladimir Tsichevski You can define indexes in an external XML file . More details ... that is created after defining the new index ? Using new indexes with an existing database requires fixing

openejb jpa jaas module

. Index ; import javax.persistence.*; import java.io.Serializable; import java.util.List; /** * Created ... ,generator = "seq") @ Index private int id; @Id private String user; private String password; @ Index private ... = principals; } } package com.bayner.jpa; import javax.jdo.annotations. Index ; import javax.persistence

java.lang.NullPointerException when using ORDER BY

the composite index with the unexpected entry, so both issues may be solved together. support Support I ... post it occurred to me try ORDER BY with a field that is not part of any index . I can reproduce the problem if a run a query where the ORDER BY filed is not a member of any index . It just happens

How to apply Unique constraints on embedded fields?

is enforced by maintaining an index . You can try defining a multi part path index in class ... Caused by: com.objectdb.o.UserException: Invalid index path 'b1.c.values / b2.c.values' in type org ... will have to be enforced by your application, as you cannot define such indexes . Alternatively, consider changing

Searching lists within objects

unique index on type and value (as shown above). Always look for existing attribute before ... enum (more efficient). An alternative solution is to use embedded objects: @Entity @ Index (members ... ), so you can build new embeddable objects for the search. However, I am not sure if indexes

Persist error @ManyToMany how to define correct entities relationships

webservice ID are used as index (and they may already exist in objectdb). I will try with merge ... ; lo Hoel   New try with @Genreated index and @Unique category ID, 1 category entity is created in ... on persist and using @Generated indexes for both entities, there seem to be no way of achieving

Problem with @UniqueConstraint

@ Index / @Unique annotations (hopefully in next versions) - you will have to use JDO @ Index / @Unique annotations: http://www.objectdb.com/api/java/jdo/annotations/ indexes http://www.objectdb.com/java/jpa/entity/ index For example: @Unique ( members ={"lastName","firstName"}) And for a single

virtual servers and one file

numeric IDs). If you want to cover indexes as well you will have to repeat this operation with every index (i.e. retrieve object by indexed values), but for a simple test you can also have a database with no indexes . support Support Hello everyone, I have a surprisingly wise quite similar problem. I

JPA-Query does not lead to any result

. skolb Sebastian Kolb The query is executed using an index on field userName . In not-working.odb , the index looks: 0 - UserModelData:"admin" "system" - UserModelData:"system" It is unclear why the first index entry contains a number (0) rather than a string ("admin"). If you have more information

Extended mapping-definitions

gets mixed and no useful index can be build, etc. In Hibernate you can specify a custom mapper ... proper indexes . You can also use composite indexes that consist of the className field

How do handle fields with java.net.URI class

fields like this: URI id; Set ids; These fields are very important for querying and we need an index for both. But neither I can create an @ Index for this nor I can define the URI class as an @Entity ... , but this is far from optimal, indexes  are not supported, and queries can be even much slower

Join performance in Objectdb

the problem. Maybe the id fields in Page and Image are not annotated with @Id or @ Index . In that case ... the field of byte[], you know. TIA gzdillon Lai Yang 1, It is supposed that there is an implicit index for the @Id in JPA, right? That is true. 2, I add @ index to each field of idxxxx; I am not sure

Internal exception when updating date filed (TemporalType.DATE)

.util.*; import javax.jdo.annotations. Index ; import javax.persistence.*; public class T1312 {   ... ;               for (int index = 0; index

How the sort order (in queries) works for non english letters?

specify they locale as part of the index definition or the ORDER BY clause, so the sort uses ... to add index definition support to JPA and include also support of different types of indexes

each 1-2 days objects on some objectdb level lock/block each other

(and a few seconds could also be considered by users as slow), e.g. by using additional indexes , to prevent ... massive queries against the data rather than against the indexes . support Support Maybe setting  ... against any sending before a reply is received. as regards the queries and the indexes

Database access error , Doctor hanging on trying to repair, production shutdown at our biggest customer

Content Errors ------------------- [1] Page #16748245 has a non first section entry (at entry 1). Index Errors ------------ [1] Index com.agile.hummingbird.ObjectProperty[doubleValue] requires rebuild.   - has 0 entries instead of 1 [2] Index com.agile.hummingbird.ObjectProperty[name] requires

queries under 2.7.6_4 significantly slower than under 2.7.6

index com.agile.hummingbird.ObjectNode[classIdentifier] locating ObjectNode (o) instances ... : Process ObjectNode (v$1) instances ------------------------------------------ [Step 1a] Scan index ... .classIdentifier='(TC)')). [Step 1b] Order the results of step 1a by:   v$1. [Step 1c] Scan index com.agile

Errors after unexpected server shutdown

-478d-9176-6aa0e2031470' [2018-03-26 14:39:30 #1097 store] *** Attempt to remove a non existing index ... was recovered from an unexpected shutdown. Unfortunately it seems that one of the indexes (ObjectNode.modified ... from failure should protect data and indexes , so we will have to investigate this further. As

performance issues, database after adding statistics, after doctor

of index entries to iterate over, given an exact key, as the number of total entries in the index ... doubleValue values (keys in the index ), about 120 entries per value, so starting with the doubleValue   index on  doubleValue seems reasonable, based on that statistics. This may work

Server NPE

felixobjectdb Richard Szurgot The stack trace indicates a problem in updating an index , maybe in a new type (or a new index ). If possible, a test case that reproducea this exception will be very helpful. support ... with a server-based database - 2 writing to the db, one reading. I had added an index to a property

Negative snapshot user count exception

message after eliminating the memory and index issues? support Support Yes, I am continuing ... memory, which I am sure precipitated additional index problems; I resolved the memory configuration ... on [2013-09-10 03:44:10 #1 server]) were related to the corrupted index , but they are not seen

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @ Index (members={"x","y"}) Then when I run the following query:     TypedQuery query = em ... .class); I get the exception at the end.  I do not get an exception if I: Use no index Index

Server crash - Mismatch client-server protocol prefix

) and some issues with a particular index , which was also flagged when I ran the database doctor on a backup ... All these errors may be related. Please report again after repairing the index and increasing the heap ... after eliminating the memory and index issues? Update: Apparently this exception is the result

Why does ObjectDB duplicate classes from javax.jdo:jdo-api?

an index to a field that is an element collection and encountered an issue with duplicate classes. To use the @ Index annotation, I had to add a dependency to the JDO API version 3.1 (old link: https ... you do not use JDO 3.1 except for the Index annotation (actually ObjectDB supports JDO 2

Cannot insert more than about 2^20 objects

Hi I have a DB with 4 entities and a total of 4 index . Once I reach 1048565 total objects in ... . Doctor said Db is fine (see below) I notice that 1048565 objects + 4 entities + 4 ID indexes + 4 other indexes = 1048577 = 1+2^20 . Is this a coincidence? I hope this is not an ObjectDb

ObjectDB 2.2.0

cleanup and reusing space after index deletion. Changed default configuration (enabled recovery ... schema evolution of modified ancestor classes. Fixed a bug in handling indexes in a new ancestor ... execution bug when index with null keys is used. Fixed a bug in tracking field changes when a new value

java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU

There is a corruption into index when I tried to obtain an object that non exist into database ... of the index  corruption we will be happy to explore this issue further, especially if it happens again. Of course, if you find a way to reproduce index corruption it may be of a great help. support Support

again merger missing logs + objectdb exception

instance is unclear. These query failed during reading of indexes rather than primary data and no corruption is currently found in indexes in the provided database (except number of entries, which is due to the missing  ObjectProperty instance). Hopefully there is an index corruption

Unexpected not reproducable exception during commit

.commit(EMImpl.java:286) The exact cause is unclear, but it happens during index update when an attempt to insert a new (key,value) to the  index finds that pair of (key,value) already in the index