-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
device management 1: Add 'is pinned on-release' column and synchronize values from 'should be running release' #1639
Conversation
1deaafb
to
8207171
Compare
8207171
to
4f7db04
Compare
src/balena-init.sql
Outdated
CREATE INDEX IF NOT EXISTS "device_should_be_running_release_application_idx" | ||
ON "device" ("should be running-release", "belongs to-application"); | ||
CREATE INDEX IF NOT EXISTS "device_should_be_operated_by_release_device_type_idx" | ||
ON "device" ("should be operated by-release", "is of-device type"); | ||
-- Also optimizes the supervisor cpu arch should match device cpu arch rule | ||
CREATE INDEX IF NOT EXISTS "device_should_be_managed_by__release_device_type_idx" | ||
ON "device" ("should be managed by-release", "is of-device type"); | ||
-- Also optimizes is pinned on successful release rule | ||
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I would move this exactly below device_should_be_running_release_application_idx
and add a TODO to the latter to drop it after the migration is complete.
We also NEED to add a reference to the fibery project in the description (and commit). |
d71661e
to
28ad9cb
Compare
5672de0
to
289cdf0
Compare
289cdf0
to
b1e340d
Compare
7083824
to
41429ca
Compare
41429ca
to
789f692
Compare
789f692
to
97ed591
Compare
Pull request was converted to draft
97ed591
to
4c26aea
Compare
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx" | ||
ON "device" ("is pinned on-release"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx" | |
ON "device" ("is pinned on-release"); | |
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_application_idx" | |
ON "device" ("is pinned on-release", "belongs to-application"); |
…e values from 'should be running release' Change-type: minor
4c26aea
to
a8ed7d1
Compare
Project: https://balena.fibery.io/Work/Project/Server-side-pagination-for-devices-Cycle-3-539
Resolves: #1101
Change-type: minor