Skip to content

Commit 2206115

Browse files
authored
add index for connection id (#1358)
1 parent e4d4a6e commit 2206115

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

goose/migrations/1698861371_full_db_snapshot.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,13 @@ ALTER TABLE ONLY allocation_changes
855855
ADD CONSTRAINT fk_allocation_connections_changes FOREIGN KEY (connection_id) REFERENCES allocation_connections(id) ON DELETE CASCADE;
856856

857857

858+
--
859+
-- Name: connection_id_index; Type: INDEX; Schema: public; Owner: blobber_user
860+
--
861+
862+
CREATE INDEX connection_id_index ON allocation_changes USING btree (connection_id);
863+
864+
858865
--
859866
-- Name: file_stats fk_file_stats_ref; Type: FK CONSTRAINT; Schema: public; Owner: blobber_user
860867
--

0 commit comments

Comments
 (0)