Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
f4309f44
Commit
f4309f44
authored
11 months ago
by
Bartek Wrona
Committed by
Dan Notestein
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade code supplemented by changes incorporated by this MR
parent
d29a80d1
No related branches found
No related tags found
2 merge requests
!827
Merge develop changes to master
,
!686
One of hive_follows indexes extended by `id` column to eliminate HEAP sort...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/db/sql_scripts/upgrade/upgrade_runtime_migration.sql
+27
-0
27 additions, 0 deletions
hive/db/sql_scripts/upgrade/upgrade_runtime_migration.sql
with
27 additions
and
0 deletions
hive/db/sql_scripts/upgrade/upgrade_runtime_migration.sql
+
27
−
0
View file @
f4309f44
...
@@ -38,6 +38,33 @@ END
...
@@ -38,6 +38,33 @@ END
$$
$$
;
;
--- https://gitlab.syncad.com/hive/hivemind/-/merge_requests/686/
CREATE
INDEX
IF
NOT
EXISTS
hive_follows_follower_where_blacklisted_idx
ON
hivemind_app
.
hive_follows
USING
btree
(
follower
ASC
NULLS
LAST
)
TABLESPACE
haf_tablespace
WHERE
blacklisted
;
CREATE
INDEX
IF
NOT
EXISTS
hive_follows_follower_where_follow_blacklists_idx
ON
hivemind_app
.
hive_follows
USING
btree
(
follower
ASC
NULLS
LAST
)
TABLESPACE
haf_tablespace
WHERE
follow_blacklists
;
CREATE
INDEX
IF
NOT
EXISTS
hive_follows_follower_where_follow_muted_idx
ON
hivemind_app
.
hive_follows
USING
btree
(
follower
ASC
NULLS
LAST
)
TABLESPACE
haf_tablespace
WHERE
follow_muted
;
CREATE
INDEX
IF
NOT
EXISTS
hive_follows_following_state_id_idx
ON
hivemind_app
.
hive_follows
USING
btree
(
following
ASC
NULLS
LAST
,
state
ASC
NULLS
LAST
,
id
ASC
NULLS
LAST
)
TABLESPACE
haf_tablespace
;
DROP
INDEX
IF
EXISTS
hivemind_app
.
hive_follows_following_state_idx
;
--- Must be at the end
--- Must be at the end
TRUNCATE
TABLE
hivemind_app
.
hive_db_data_migration
;
TRUNCATE
TABLE
hivemind_app
.
hive_db_data_migration
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment