feat: Add event_id index on Core Data reading table#5190
Merged
judehung merged 1 commit intoedgexfoundry:mainfrom Jun 23, 2025
Merged
feat: Add event_id index on Core Data reading table#5190judehung merged 1 commit intoedgexfoundry:mainfrom
judehung merged 1 commit intoedgexfoundry:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5190 +/- ##
==========================================
+ Coverage 26.69% 26.74% +0.05%
==========================================
Files 278 278
Lines 19954 19993 +39
==========================================
+ Hits 5326 5347 +21
- Misses 13370 13387 +17
- Partials 1258 1259 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
judehung
reviewed
Jun 23, 2025
| -- SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| ALTER TABLE core_data.device_info ADD COLUMN IF NOT EXISTS mark_deleted BOOLEAN DEFAULT false; | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| -- create index on reading(event_id) to enhance the query performance |
Add the event_id index on reading table to speed up the query. Close edgexfoundry#5176 Signed-off-by: bruce <weichou1229@gmail.com>
|
FelixTing
pushed a commit
to FelixTing/edgex-go
that referenced
this pull request
Oct 15, 2025
Add the event_id index on reading table to speed up the query. Close edgexfoundry#5176 Signed-off-by: bruce <weichou1229@gmail.com>
FelixTing
pushed a commit
to FelixTing/edgex-go
that referenced
this pull request
Oct 15, 2025
Add the event_id index on reading table to speed up the query. Close edgexfoundry#5176 Signed-off-by: Bruce Huang <weichou1229@gmail.com>
FelixTing
pushed a commit
to FelixTing/edgex-go
that referenced
this pull request
Oct 15, 2025
Add the event_id index on reading table to speed up the query. Close edgexfoundry#5176 Signed-off-by: Bruce Huang <weichou1229@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Add the event_id index on reading table to speed up the query.
Close #5176
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:describing the break)Testing Instructions
Deploy core service and device-virtaul to test the event API.
New Dependency Instructions (If applicable)