ObjectDB Database Search

1-50 of 195 results

Index Definition

Querying without indexes requires sequential iteration over entities in the database. If many entities must be examined, this process can take a significant amount of time. Using indexes avoids ... . However, index management introduces overhead in maintenance time and storage space. Therefore, you should choose

jakarta.persistence.Index

Jakarta Persistence (JPA) Annotation Type jakarta.persistence. 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

jakarta.persistence.TableGenerator.indexes

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator Index [] indexes (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. Default: {} Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.Table.indexes

Jakarta Persistence (JPA) Method in jakarta.persistence.Table Index [] indexes (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. Default: {} Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.ListJoin.index()

Jakarta Persistence (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 ... element collection for which an order column has been defined. Returns: expression denoting the index . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Index.unique

Jakarta Persistence (JPA) Method in jakarta.persistence. Index boolean unique (Optional) Whether the index is unique. Default: false Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Index.options

Jakarta Persistence (JPA) Method in jakarta.persistence. Index String options (Optional) A SQL fragment appended to the generated DDL which creates this index . Default: "" Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Index.name

Jakarta Persistence (JPA) Method in jakarta.persistence. Index String name (Optional) The name of the index . Defaults to a provider-generated name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Index.columnList

Jakarta Persistence (JPA) Method in jakarta.persistence. Index String columnList (Required) The columns included in the index , in order, following the BNF rule column_list given above. Since: Jakarta Persistence (JPA) 1.0

Database Management Settings

thread competition. The element The element specifies how newly defined 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 existing instances are indexed . Indexing a large amount of data

WHERE clause (JPQL / Criteria API)

and collected as query results. WHERE predicate and indexes Formally, the WHERE clause functions as a filter between the FROM and SELECT clauses. In practice, if a suitable index is available , the database performs the filtering during the FROM iteration. In the previous population query, if an index

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

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 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

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

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

Repeated long Index Activation

when accessing database without the index been ready. Original Thread: https://www.objectdb.com/forum/2401 Now we've run into issue, that in some database the Index rebuild takes a lot of time (e.g. 20 minutes) and it is done repeatedly in multiple starts of database without any indexing change. We would need

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

Index on map key

Is there a way to create an Index with @ Index on the key of a map? wua Andreas Wurm Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use ... javax.jdo.annotations. Index ; import javax.persistence.*; public class T1255 {     public

Are indexes implicitly created for relationships?

Do the following annotations @OneToMany @ManyToOne @ManyToMany @OneToOne imply @ Index   ... ) should apply @Unique on the @One side. But ObjectDB doesn't apply these indexes automatically, because of their overhead (which most users are not aware of). You should use the @ Index or  @Unique annotations explicitly to set indexes . support Support

Index on values from a Map

Hi, is there a way to put an Index on the values from an Map? For example, if I have a Map like ... = mmsContainer.values();   Thanks for you help   wua Andreas Wurm Indexes are used only in queries, and cannot accelerate other application code. You can define an index on a map value

Search through collection for value using index

that can be modified by a paticular user, since I will do this query often I would like to index it.  How would I tell ObjectDB to make an index and then use it in a query? I have yet to deploy this entity so I ... Herman You can define an index on a collection field as explained in the manual , and the index

Indexes broken after schema update.

to pick up the new schema and now none of the indexes work, except the @Id. I can query by any field that is not indexed on the existing Object but as soon as I try and query against a field that was indexed I get no results. Tried 2.4.2 and 2.4.2_02 with same results. bensteele Ben Steele Adding

Check for index existence ?

Hello, Is there a simple way to check if indexes specified in entities are well taken into account ... of indexes : When you execute a query in the Explorer in the log pane. In the log file if you enable query ... in log is not immediate. Well, how can i check index existence so ? xirt Sylvain The log

Case Insensitive Indexes

How do you do case insensitive indexes ? I have search the Forum and tutorials and have not found any info related to this.   Thanks, -- Nathan Modrzewski nmodrzewski Nathan Modrzewski Case insensitive string indexes are currently not supported. If you cannot use lowercase only (or uppercase

Search with wildcards and index issue

annotations: @ Index (unique="true") @Column(nullable=false,unique=true) the search no longer works. I ... demonstrates that ESCAPE in LIKE was ignored when using an index . Build 2.3.7_11 fixes this bug. Thank you for your report. support Support

JPA Entity Fields

. An index on the owner field can accelerate the inverse query and the loading of the inverse field. However, even with an index , executing a query to load a field is relatively slow

Query Parameters in JPA

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

FROM clause (JPQL / Criteria API)

, FETCH,FROM, GROUP, HAVING, IN, INDEX , INNER, IS, JOIN, KEY, LEADING, LEFT, LENGTH, LIKE,LOCATE

JPA Metamodel Attributes

. Represents an attribute typed as a java.util.List , supporting ordered collections and index -based

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

that return a numeric value, such as INDEX and SIZE . As string functions that return a numeric value, such as

jakarta.persistence.JoinTable

to no additional constraints. Default: {} Since: Jakarta Persistence (JPA) 1.0 Index [] indexes (Optional) Indexes for the table. These are only used if table generation is in effect. Default

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"})     })  

Slow query due to scanning multiple indexes

We have an entity that has indexes on several fields, including some composite indexes . When I ... .rackOID = "826268" Query plan 1/2 description ============================ [Step 1] Scan index eu.extech ... of both indexes and merges the results, which is orders of magnitude slower (30-50 ms): SELECT p FROM

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

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

"is not null" queries not working with index

"is not null"-queries are not working correctly for indexed fields. Following SSCCE creates 1000 entities. A null value is assigned to an indexed field for every second entity. When doing count ... . Index ; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax

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 -