-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added indexes for public_api_daily_limit table
- Loading branch information
1 parent
090b7b0
commit 87068ee
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
orcid-persistence/src/main/resources/db/updates/add_public_api_daily_rate_limit_indexes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> | ||
|
||
|
||
<changeSet id="ADD-PAPI-LIMIT-INDEXES" author="Camelia Dumitru"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists indexName="idx_ip_address" tableName="public_api_daily_rate_limit" /> | ||
</not> | ||
<not> | ||
<indexExists indexName="idx_client_id" tableName="public_api_daily_rate_limit" /> | ||
</not> | ||
<not> | ||
<indexExists indexName="idx_request_date" tableName="public_api_daily_rate_limit" /> | ||
</not> | ||
</preConditions> | ||
<!-- Add indexes --> | ||
<createIndex indexName="idx_ip_address" tableName="public_api_daily_rate_limit"> | ||
<column name="ip_address"/> | ||
</createIndex> | ||
|
||
<createIndex indexName="idx_client_id" tableName="public_api_daily_rate_limit"> | ||
<column name="client_id"/> | ||
</createIndex> | ||
|
||
<createIndex indexName="idx_request_date" tableName="public_api_daily_rate_limit"> | ||
<column name="request_date"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |