From 887806d6618844fdb6d4c61da94cfa4be9a1657a Mon Sep 17 00:00:00 2001 From: Julia Damerow Date: Thu, 8 Feb 2018 16:04:10 -0700 Subject: [PATCH 1/2] added index to upload table for performance --- .../edu/asu/diging/gilesecosystem/web/domain/impl/Upload.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/giles-eco/src/main/java/edu/asu/diging/gilesecosystem/web/domain/impl/Upload.java b/giles-eco/src/main/java/edu/asu/diging/gilesecosystem/web/domain/impl/Upload.java index d33c1794..08eaf26d 100755 --- a/giles-eco/src/main/java/edu/asu/diging/gilesecosystem/web/domain/impl/Upload.java +++ b/giles-eco/src/main/java/edu/asu/diging/gilesecosystem/web/domain/impl/Upload.java @@ -10,7 +10,8 @@ @Entity @Table(indexes={ @Index(columnList="uploadProgressId", name="IDX_PROGRESS_ID"), - @Index(columnList="username", name="IDX_USERNAME") + @Index(columnList="username", name="IDX_USERNAME"), + @Index(columnList="createdDate", name="IDX_CREATED_DATE") }) public class Upload implements IUpload { From b823b6d425fcde70f0e954dba12348eae3fdd62c Mon Sep 17 00:00:00 2001 From: Julia Damerow Date: Mon, 12 Feb 2018 16:17:11 -0700 Subject: [PATCH 2/2] use sequence id generating strategy --- giles-eco/src/main/resources/META-INF/hibernate/orm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giles-eco/src/main/resources/META-INF/hibernate/orm.xml b/giles-eco/src/main/resources/META-INF/hibernate/orm.xml index 42828555..565be374 100644 --- a/giles-eco/src/main/resources/META-INF/hibernate/orm.xml +++ b/giles-eco/src/main/resources/META-INF/hibernate/orm.xml @@ -6,7 +6,7 @@ - +