diff --git a/orcid-persistence/src/main/resources/db/updates/add_public_api_daily_rate_limit_indexes.xml b/orcid-persistence/src/main/resources/db/updates/add_public_api_daily_rate_limit_indexes.xml index e37f7d248f..50733ef553 100644 --- a/orcid-persistence/src/main/resources/db/updates/add_public_api_daily_rate_limit_indexes.xml +++ b/orcid-persistence/src/main/resources/db/updates/add_public_api_daily_rate_limit_indexes.xml @@ -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"> - + create index concurrently if not exists idx_ip_address on public_api_daily_rate_limit(ip_address); - create index concurrently if not exists idx_request_date on public_api_daily_rate_limit(request_date); + + create index concurrently if not exists idx_client_id on public_api_daily_rate_limit(client_id); + + + create index concurrently if not exists idx_request_date on public_api_daily_rate_limit(request_date); + + create index concurrently if not exists idx_client_ip_date on public_api_daily_rate_limit(client_id, ip_address, request_date);