Add index on key_id

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent a8fbfd851c
commit 8c395bcf4b
  1. 1
      archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql

@ -44,6 +44,7 @@ CREATE TABLE containers (
CREATE INDEX ON containers USING HASH (crc32); CREATE INDEX ON containers USING HASH (crc32);
CREATE INDEX ON containers (id) WHERE encrypted AND key_id IS NULL; CREATE INDEX ON containers (id) WHERE encrypted AND key_id IS NULL;
CREATE INDEX ON containers (key_id) WHERE key_id IS NOT NULL;
CREATE TABLE brute_force_iterator ( CREATE TABLE brute_force_iterator (
last_container_id BIGINT NULL, last_container_id BIGINT NULL,

Loading…
Cancel
Save