Skip to content

VCST-5143: Improve performance#496

Open
OlegoO wants to merge 3 commits into
devfrom
feat/VCST-5143
Open

VCST-5143: Improve performance#496
OlegoO wants to merge 3 commits into
devfrom
feat/VCST-5143

Conversation

@OlegoO

@OlegoO OlegoO commented May 25, 2026

Copy link
Copy Markdown
Contributor

Description

feat: Improve performance

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-5143

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Orders_3.1009.0-pr-496-b15b.zip


Note

Low Risk
Single-line guard change with identical semantics on an existing EF read path.

Overview
GetShipmentsByIdsAsync now checks result.Length != 0 instead of result.Any() when deciding whether to return the loaded shipment entities or an empty array. Behavior is unchanged; this avoids enumerating the array just to test emptiness and matches the same pattern already used in GetPaymentsByIdsAsync and GetCustomerOrdersByIdsAsync in OrderRepository.

Reviewed by Cursor Bugbot for commit b15b1d0. Bugbot is set up for automated code reviews on this repo. Configure here.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant