ObjectDB Database Search

1-50 of 200 results

Index Definition

Querying without indexes requires iteration over entity objects in the database one by ... indexes the iteration can be avoided and complex queries over millions of objects can be executed quickly. Index management introduces overhead in terms of maintenance time and storage space, so deciding

Database Management Settings

indexes are handled. When a new index is defined for an existing entity class that already has instances stored in the database, the index cannot be used until all the existing instances are indexed . Indexing a large amount of data may take considerable processing time. The enabled attribute

WHERE clause (JPQL / Criteria API)

and Indexes Formally, the WHERE clause functions as a filter between the FROM and the SELECT clauses. Practically, if a proper index is available , filtering is done earlier during FROM iteration. In the above population query, if an index is defined on the population field ObjectDB can use

possible index required for improving query performance

Hi, I have the following entity class: @Entity @Table @Indices({ @ Index (members={"relationshipType", "party"}), @ Index (members={"relationshipType", "otherParty"}), @ Index (members={"relationshipType ... as the number of relationships and BaseObjects grow. The query is using two indexed fields

ObjectDB Object Database Features

queries with the same arguments). Many other internal caches. Indexing Single field and multi field ( composite ) indices. Collection and array elements are indexable (extremely fast JOIN queries). Map keys and values are indexable . Nested paths inside embedded objects are indexable . Indices

Composite indexes

Hi, I read your manual about defining Indexes for JPA Entities (http://www.objectdb.com/java/jpa/entity/ index ), but I still have some problems understanding how and when should I use them.   ... (...) }   Here are my questions regarding composite indexes : #1. First of all - the first member in

composite index not used in query

we defined a composite index for class Action: @ Index (name="ssst",members={"startDate","state","subType","type"}) and an index for the OneToMany @OneToMany(fetch=FetchType.LAZY) @ Index public List ... and a.startDate ?1)) the composite index is not used, query plan:  Step 1: Process Action

Index on a low cardinality column

" If many of the values in the field are the same, the index might not significantly speed up queries." "An index on the gender column likely would  not  help because there's no value in an index on a low cardinality column. Meaning, there's not enough variety in the values

Index causes increased memory usage

(with and without String indexing ).  Is there some sort of tuning we can do to have both fast queries and not soak up all the memory on the server?   Thanks, CVTSC cvtsc Dev Team Using indexes should not make that difference. When indexes become available different query plans may be used to execute queries

Multi part paths in a composite index must have the same length

Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Exception in thread "main" [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Invalid index path ... (EMImpl.java:958)   Here is how the class of the persisted object looks like @Entity @ Index

AnnotationRef jakarta.persistence.Index

JPA Annotation Index Implemented Interfaces: Annotation Used in schema generation to specify creation of an index . The syntax of the columnList element is given by the following simple BNF: column_list ::= index _column [, index _column] index _column ::= column_name [ASC | DESC] If neither ASC

Date field Index is corrupted due to time change

indexed data). It is unclear yet how exactly this happened. support Support Apparently we found the bug, which affects indexes on pure Date fields (i.e. date with no time). ObjectDB converts pure ... .getOffset method changes. It could be any date, but the index will become corrupted

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured ... = FetchType.LAZY) private List stores; // Setter/Getter } So I wanted to add index on Customer for merchant ... ; @Entity @Indices({ @ Index (members={"merchant.name"}), @ Index (members={"stores.name

index - data rewrite

Hi we have found that applying indexes on an existing table erases the data. Are we doing ... defined indexes . In earlier versions new indexes had no effect until the database was rebuilt using the Doctor. What ObjectDB version are you using? Because automatic activation of new indexes is a new

Indexing a field results in internal Exception

a problem with indexing . An index on a String field is required to give good performance but if I add the @ Index annotation to the field I eventually end up with an ObjectDB internal exception.  This is reproducible, as is the program running to completion (slowly) if I remove the @ Index

Slow searching with two indexes

a performance problem using two indexes .  An entity I'm querying has two indexed fields ... == :objectReference order by id desc when an index is defined on the reference field should use that index ... where receiver == :r order by id desc Query Plan Description ====================== [Step 1] Scan index com

Temporary disabling of indexes?

When populating a large database with objects that have indexed fields takes very much longer than populating the database with those objects if the index definitions are removed.  Is it possible to indicate in some way that for a particular use of the database indexes are to be ignored

Is there an administration tool with which I could create extra indexes?

Hello, I have composite index , and it was working fine, but now I need to add more features to the software and I need to throw more indexes in there. I wanted to know what's the best way to do this. 1. Have some admin tool CREATE INDEX ..... ON a.b or 2. add more @ Index to the object entities. in

Adding indexes on existing entities.

Is it safe to add indexes on an existing entity class? Thanks. lo Hoel Safe, but to enable the new index you will have to rebuild it , currently using the Doctor. Before running the Doctor make sure that the index is registered in the database by opening the database when it has access to the new

New Index causing troubles

Hello, we introduced a new index upon a String field Order.typeName, added to package.jdo as After starting our app with the new index on one database we got the following exception: 2019-02-01 04 ... and back then we could not get the new index working at all. jakab Gergely Jakab Thank

Composite Index error 328

= -1"), } ) @Indices( { @javax.jdo.annotations. Index (members = {"id","pwd","access"}) } ) public ... , id2) : : so actually the id field is included in the index , and queries on pwd , access and id can be executed by using the index only with no need to access the data.  Adding a primary key field

AnnotationAttrRef jakarta.persistence.Table.indexes

JPA Annotation Attribute in jakarta.persistence.Table Index [] indexes default {} (Optional) Indexes for the table. These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key, as the primary key index is created automatically. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.TableGenerator.indexes

JPA Annotation Attribute in jakarta.persistence.TableGenerator Index [] indexes default {} (Optional) Indexes for the table. These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key, as the primary key index is created automatically. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.JoinTable.indexes

JPA Annotation Attribute in jakarta.persistence.JoinTable Index [] indexes default {} (Optional) Indexes for the table. These are only used if table generation is in effect. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.CollectionTable.indexes

JPA Annotation Attribute in jakarta.persistence.CollectionTable Index [] indexes default {} (Optional) Indexes for the table. These are only used if table generation is in effect. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.SecondaryTable.indexes

JPA Annotation Attribute in jakarta.persistence.SecondaryTable Index [] indexes default {} (Optional) Indexes for the table. These are only used if table generation is in effect. Since: JPA 2.1

ListJoin.index() - JPA Method

JPA Method in jakarta.persistence.criteria.ListJoin Expression index () Create an expression that corresponds to the index of the object in the referenced association or element collection ... for which an order column has been defined. Return: expression denoting the index Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.Index.options

JPA Annotation Attribute in jakarta.persistence. Index String options default "" (Optional) A SQL fragment appended to the generated DDL which creates this index . Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.Index.name

JPA Annotation Attribute in jakarta.persistence. Index String name default "" (Optional) The name of the index . Defaults to a provider-generated name. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.Index.unique

JPA Annotation Attribute in jakarta.persistence. Index boolean unique default false (Optional) Whether the index is unique. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.Index.columnList

JPA Annotation Attribute in jakarta.persistence. Index String columnList default null (Required) The columns included in the index , in order, following the BNF rule column_list given above. Since: JPA 2.1

JDO Annotations for Index Definition

The following annotations are used to define indexes on persistent fields: The Index Definition section of the ObjectDB manual explains these annotations in details.

JPA Entity Fields

. An index on the owner field may accelerate the inverse query and the load of the inverse field. But even with an index , executing a query for loading a field is relatively slow. Therefore, if the employees

Query Parameters in JPA

). Ordinal Parameters (? index ) In addition to named parameters, whose form is :name , JPQL also supports ordinal parameters, whose form is ? index . The following method is equivalent to the method

Database Explorer

and embeddable classes) in the database and their persistent fields and indexes . The [Query] window enables ... query execution plan. This is useful, for example, for checking which indexes are used. The Reset button

FROM clause (JPQL / Criteria API)

, HAVING, IN, INDEX , INNER, IS, JOIN, KEY, LEADING, LEFT, LENGTH, LIKE,LOCATE, LOWER, MAX, MEMBER, MIN

Is ObjectDB scalable? What are its limitations?

classes per database file. Up to 2,147,483,648 indexes per database file

Numbers in JPQL and Criteria Queries

functions - when the return value is numeric, e.g. INDEX , SIZE. as string functions - when the return

ObjectDB Overview

file. Advanced querying and indexing capabilities. Effective in heavy loaded multi-user environments

combined index not used

.properties.doubleValue In the class Action we have a combined index (see attachment) but in the query plan we can see that this index is not used: Query Plan Description ====================== Step 1: Process Action (a) instances ------------------------------------ [Step 1a] Scan index com.agile

Problem using "and" for joined entities and indexed fields

Using @ Index for fields and filter more than one field with "and" predicate ends in empty result ... ({         @ Index (members = {"children.name"}),         @ Index (members = {"children.age"})     })  

ObjectDB 2.7.2_x Doctor Yields "Index Requires Rebuild" Always

on it.  See indexing errors reported. Run ObjectDB 2.7.1 on same .odb and you will not see indexing ... ; repaired.odb will still show indexing errors when ObjectDB 2.7.2 (or later) Doctor is run on the "repaired" database. Automatic index rebuilding (" ") does not correct the database. So, in summary, I

Indexes broken after schema update

an existing one and I get 0 results when trying to query by an existing index (that still exists) and the below errors in the logs. I can query the object fine by non- indexed fields and by the @Id.   [2012-08-19 19:42:25 #74 store] *** Attempt to remove a non existing index entry: [2012-08-19 19:42

Exception upon index definition change

; private long   index ;     private String role; } @ Index (members = {"refs.role", "refs. index "}) @Entity public class ChangeSet {     @ElementCollection    ... .objectdb.com/database/support/636. I think index changes should never cause the application to stop

Index Rebuilder

When a new index is added to an existing entity classes that already has instances in the database ... data. The Index Rebuilder tool will enable rebuilding indexes , synchronizing their data ... , in which such new indexes will be enabled. support Support Version 2.6.6 introduces a built in

Can not have unique index on Byte Array

an index that does not allow duplicate keys. An index on a collection or array (including byte ... also that an index on a collection or array will not be useful in queries that compare the entire array or collection ... , e.g. using a JOIN query. This is because every element is indexed as a separate index entry

Step 6: Set the Spring XML

.DispatcherServlet 2 spring *.html 30 index .jsp The settings above routes web requests with  .html suffix

Step 6: Set the Spring XML

: spring org.springframework.web.servlet.DispatcherServlet 2 spring *.html 30 index .jsp The settings

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace the content of the index .jsp file (which serves as the default front page) with the following redirection to the  controller path: If Tomcat 6.0 is installed as a server in your Eclipse - 

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace the content of the index .jsp file (which serves as the default front page) with the following redirection to the controller path: Assuming that Tomcat 6.0 is installed as a server in your NetBeans