Skip to content

Commit

Permalink
Created separate changesets per index
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid committed Nov 18, 2024
1 parent 1c0adb0 commit 091360e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
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" runInTransaction="false">
<changeSet id="ADD-PAPI-LIMIT-INDEXES-IP-ADDRESS" author="Camelia Dumitru" runInTransaction="false">
<sql>create index concurrently if not exists idx_ip_address on public_api_daily_rate_limit(ip_address);</sql>
<sql>create index concurrently if not exists idx_request_date on public_api_daily_rate_limit(request_date);</sql>
</changeSet>
<changeSet id="ADD-PAPI-LIMIT-INDEXES-CLIENT-ID" author="Camelia Dumitru" runInTransaction="false">
<sql>create index concurrently if not exists idx_client_id on public_api_daily_rate_limit(client_id);</sql>
</changeSet>
<changeSet id="ADD-PAPI-LIMIT-INDEXES-REQUEST-DATE" author="Camelia Dumitru" runInTransaction="false">
<sql>create index concurrently if not exists idx_request_date on public_api_daily_rate_limit(request_date);</sql>
</changeSet>
<changeSet id="ADD-PAPI-LIMIT-INDEXES-COMPOSITE" author="Camelia Dumitru" runInTransaction="false">
<sql>create index concurrently if not exists idx_client_ip_date on public_api_daily_rate_limit(client_id, ip_address, request_date);</sql>
</changeSet>

Expand Down

0 comments on commit 091360e

Please sign in to comment.