Commit 146bc457 authored by Matija Obreza's avatar Matija Obreza

Added index on accession.createdDate

- Lets us find new stuff!
parent d5fd3b46
...@@ -43,7 +43,8 @@ import org.springframework.data.elasticsearch.annotations.Document; ...@@ -43,7 +43,8 @@ import org.springframework.data.elasticsearch.annotations.Document;
@Index(name = "IX_origcty_seqNo", columnList = "orgCtyId,seqNo"), @Index(name = "IX_origcty_seqNo", columnList = "orgCtyId,seqNo"),
@Index(name = "IX_taxa_seq", columnList = "taxonomyId2,seqNo"), @Index(name = "IX_taxa_seq", columnList = "taxonomyId2,seqNo"),
@Index(name = "IX_seqNo", columnList = "seqNo"), @Index(name = "IX_seqNo", columnList = "seqNo"),
@Index(name = "IX_accession_lastModifiedDate", columnList = "lastModifiedDate")}) @Index(name = "IX_accession_lastModifiedDate", columnList = "lastModifiedDate"),
@Index(name = "IX_accession_createdDate", columnList = "createdDate")})
@Audited @Audited
@Document(indexName = "genesys") @Document(indexName = "genesys")
public class Accession extends AccessionData { public class Accession extends AccessionData {
......
...@@ -5565,3 +5565,16 @@ databaseChangeLog: ...@@ -5565,3 +5565,16 @@ databaseChangeLog:
union all select collectId, coll3 from t_collCode where coll3 is not null union all select collectId, coll3 from t_collCode where coll3 is not null
union all select collectId, coll4 from t_collCode where coll4 is not null) Q); union all select collectId, coll4 from t_collCode where coll4 is not null) Q);
drop table t_collCode; drop table t_collCode;
- changeSet:
id: 1550431022000-1
author: mobreza
comment: Index on accession.createdDate let's us find new records
changes:
- createIndex:
columns:
- column:
name: createdDate
indexName: IX_accession_createdDate
tableName: accession
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment