ObjectDB Database Search

101-150 of 200 results

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

no query result

and a.transferred = 0 and see a very strange query plan, an index scan for an entry that is not used ... ============================ [Step 1] Scan index com.agile.hummingbird.Action[endDate] locating ... ] Scan index com.agile.hummingbird.Action[state, subType, type, startDate, endDate

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

2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object"

, but why do you duplicate the primary key into an additional indexed field? Primary key fields are already indexed (and with a primary index , which is usually more powerful), so what are the benefits of having that additional indexed field? support Support Textual letter case.  I have an index

How to create a Unique constraint?

Account { @Id @GeneratedValue private long id; @ Index (unique="true") private String name; } The code runs ... ; FastModel Ben Schreiber When a new  index is added to an entity class that already has instances in the database - the index starts as inactive. To activate it you need to rebuild the index

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

removing members in existing databases

aproach i have a next question: Is reendexing done automaticly, especially if you have new indexes or ... (defining indexes on the owner fields can help). Regarding the Doctor, although it is not intended for this use, if it works for you then you can choose this option. As a bonus, all indexes

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

Schema migration - long to String

is indexed ). Every old object should be adjusted automatically when it is loaded using the new scheme ... build 2.4.5_05. support Support OK, I should mention one thing. This field has an index ... , but index left for old values and when trying to rebuild this index , there was something wrong with filed

system exception occurred during an invocation on EJB GuestDao

) at org.apache.jsp. index _jsp._jspService( index _jsp.java:46) at org.apache.jasper.runtime.HttpJspBase ... .jsp. index _jsp._jspService( index _jsp.java:46) at org.apache.jasper.runtime.HttpJspBase.service ... .PageContextImpl.forward(PageContextImpl.java:792) at org.apache.jsp. index _jsp._jspService( index _jsp.java:46

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

database more or less destroyed

can occur hgzpincher Hans-Georg Zwicker The Doctor output indicates index corruption, i.e. index ... shutdown) hgzpincher Hans-Georg Zwicker by the way, are the indexes updated/rebuilt by the doctor ? in the log after the doctor run we do not see a rebuild of the indexes hgzpincher Hans-Georg Zwicker

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

How best to unbind all names?

way, by adding a 'name' field, which may be set as a primary key or as a unique index ... the object primary key (a String). The free edition of objectdb does not provide indexes , so I ... supports indexes . The only restrictions are in the number of classes (10) and objects (1000000

Unexpected internal exception during set field of an Embeddable to null

the field index is 1 and that it what is sent to  beforeModifyMember:     public ... version of the enhanced class, in which the field index was 2. The sub class at #8 doesn't ... you can see in #6 above) with the same field index , when applicable. Are you sure

Problem with Composite indices

class Client { @ Index (unique = "true") private String name; } and a User class which looks like: @ Index (members = {"client", "emails"}) public class User { private Client client; private List emails ... .de"). No I get the exception: Invalid index path 'emails' in type User How can I realize

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

@Unique member combination not working

without the Unique ? Notice that adding Unique to an existing database is like adding an index (since  Unique is implemented as an index ), and therefore requires index rebuilding  (currently using the ObjectDB Doctor). support Support

Finding an object by its datetime

Support Hi, I forgot the @ Index beside @Temporal(TemporalType.TIMESTAMP) Calendar btime; It looks like this now in the entity class: @ Index @Temporal(TemporalType.TIMESTAMP) Calendar btime; And I ... .   takada Takumi Adachi Interesting. It should work also with no index but you may have to define

Error during cascaded merge

back. Here are the relevant parts of the involved Entity classes: @Entity @Indices({     @ Index (members = {"lastPosition.receiveTime"}),     @ Index (members = {"lastMovingPosition.receiveTime ... ;    return channelConfigurationSets;     } ... } @Entity @ Index (members

Out of memory

Value Errors ------------------- [1] Unexpected last index ID: 3624386649387068524 (expected -317) [2 ... ;on the server side. Maybe changing some queries, setting indexes or using the objectdb.result-fetch hint ... , additional 100MB of cache is for indexes , that are load from database? Now, how to estimate the max heap

Sort of very large objects - out of memory

;This requires a fix, but meanwhile, adding a composite index can solve the problem: @Entity     @ Index (members={"priority", "createTime"})     public static class Message { If there is an index that covers all the fields that are in use in the query and it is much smaller

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

ObjectDB 2.7.2

database space after removing an index . Improved error message on attempt to enhance a class in a jar ... . Fixed an  InternalException on some JDO delete queries. Fixed a bug in processing a new index ... with a shared temp directory. Fixed an error message in processing an invalid index . Fixed  index

NullPointerException: Cannot invoke "com.objectdb.o.RFV.S()" because "" is null

Using @ Index for fields and combine this with sorting the query throws an NullPointerException ... ;  @Indices({         @ Index (members = {"children.name"}),         @ Index (members = {"children.age"})   

ObjectDB 2.4.6

primary key fields in queries (on index merging). Fixed a bug in using a collection field index in queries. Fixed query plan selection for queries with boolean indexed field. Fixed a NullPointerException on Doctor run that removes an empty index . Fixed Doctor false alert after changing field type

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

Error on commit

to get a clean log file and the doctor must have fixed it. (possible index issue?) This is from the original ... ] *** Attempt to remove a non existing index entry: [2012-04-20 11:56:07 #201 store] BTree ID: -108 [2012 ... ) ---------------------------------------------------------------- bmcalist.odb Brian The stack trace indicates an index problem