Skip to content

Commit 32ea36f

Browse files
committed
migrations: add additional symbol_history indexes
Indexes are added to these columns, since they are used in WHERE clauses in various queries: - sort_version - goos - goarch For golang/go#37102 Change-Id: I5e4351cbfb06bac76bd8b5ed5e83421b8f615524 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/317309 Trust: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent f646366 commit 32ea36f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Copyright 2021 The Go Authors. All rights reserved.
2+
-- Use of this source code is governed by a BSD-style
3+
-- license that can be found in the LICENSE file.
4+
5+
BEGIN;
6+
7+
DROP INDEX idx_symbol_history_module_sort_version;
8+
DROP INDEX idx_symbol_history_goos;
9+
DROP INDEX idx_symbol_history_goarch;
10+
11+
END;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Copyright 2021 The Go Authors. All rights reserved.
2+
-- Use of this source code is governed by a BSD-style
3+
-- license that can be found in the LICENSE file.
4+
5+
BEGIN;
6+
7+
CREATE INDEX idx_symbol_history_sort_version ON symbol_history(sort_version);
8+
CREATE INDEX idx_symbol_history_goos ON symbol_history(goos);
9+
CREATE INDEX idx_symbol_history_goarch ON symbol_history(goarch);
10+
11+
END;

0 commit comments

Comments
 (0)