Skip to content

Commit 131ea8c

Browse files
lampajrstalep
authored andcommitted
Add indexes on datapoint and fingerprint
Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
1 parent ecd3ee8 commit 131ea8c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

horreum-backend/src/main/resources/db/changeLog.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4850,4 +4850,15 @@
48504850
<validCheckSum>ANY</validCheckSum>
48514851
<customChange class="io.hyperfoil.tools.horreum.migration.BackfillFingerprintHashChangeSet" />
48524852
</changeSet>
4853+
<changeSet id="133" author="lampajr">
4854+
<validCheckSum>ANY</validCheckSum>
4855+
<createIndex tableName="datapoint" indexName="idx_datapoint_variable_timestamp">
4856+
<column name="variable_id" />
4857+
<column name="timestamp" descending="true"/>
4858+
</createIndex>
4859+
<createIndex tableName="fingerprint" indexName="idx_fingerprint_hash_dataset">
4860+
<column name="fp_hash" />
4861+
<column name="dataset_id" />
4862+
</createIndex>
4863+
</changeSet>
48534864
</databaseChangeLog>

0 commit comments

Comments
 (0)