Skip to content

localizationpartdriver refactor#8366

Merged
sebastienros merged 2 commits into
OrchardCMS:devfrom
LaserSrl:fix/8365_localizationpartdriver_refactor
May 7, 2020
Merged

localizationpartdriver refactor#8366
sebastienros merged 2 commits into
OrchardCMS:devfrom
LaserSrl:fix/8365_localizationpartdriver_refactor

Conversation

@MatteoPiovanelli

Copy link
Copy Markdown
Contributor

Fix for #8365
What I briefly discussed there is implemented here as changes to LocalizationPartDriver.

Prevent driver from repeating the same query several times in a request (it used
to try and fetch all of a part's localizations at least twice per request).
Changed query for a MasterContentItem's localizations so it should "hint" sql to
use different indexes.

# Conflicts:
#	src/Orchard.Web/Modules/Orchard.Localization/Services/LocalizationService.cs
Avoid some calls for translation groups when we know them to be empty.
@sebastienros
sebastienros merged commit 9d1267a into OrchardCMS:dev May 7, 2020
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.

2 participants