From 25a2e111a9e3cc3156923f48e9474cd18a579c1b Mon Sep 17 00:00:00 2001 From: Tang Jiawei Date: Thu, 4 Jan 2024 00:53:47 +0800 Subject: [PATCH] add idx for element_ids --- src/app/archive/zkapp_tables.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/archive/zkapp_tables.sql b/src/app/archive/zkapp_tables.sql index 03445a146aa..f9d71b076b5 100644 --- a/src/app/archive/zkapp_tables.sql +++ b/src/app/archive/zkapp_tables.sql @@ -33,6 +33,8 @@ CREATE TABLE zkapp_field_array , element_ids int[] NOT NULL ); +create INDEX idx_zkapp_field_array_element_ids ON zkapp_field_array(element_ids); + /* Fixed-width arrays of algebraic fields, given as id's from zkapp_field