You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While checking the queries being fired off to the db for #8688 I noticed that for many test pages I had a handful of queries SELECTing a specific CultureRecord, by culture.
Checking around the codebase, my assumption is that those are caused by calls to GetCultureByName. It would be trivial to add a layer of cache to prevent those. Same for GetCultureById. Moreover, the signals to manage eviction of that appear to be already in place, and used in the same manager.
My question to the community and especially (@sebastienros and @BenedekFarkas ) is: do you think this is worth it?
I don't have a chance right now to measure this.
The text was updated successfully, but these errors were encountered:
Orchard/src/Orchard/Localization/Services/DefaultCultureManager.cs
Line 70 in bdba35c
While checking the queries being fired off to the db for #8688 I noticed that for many test pages I had a handful of queries SELECTing a specific CultureRecord, by culture.
Checking around the codebase, my assumption is that those are caused by calls to
GetCultureByName
. It would be trivial to add a layer of cache to prevent those. Same forGetCultureById
. Moreover, the signals to manage eviction of that appear to be already in place, and used in the same manager.My question to the community and especially (@sebastienros and @BenedekFarkas ) is: do you think this is worth it?
I don't have a chance right now to measure this.
The text was updated successfully, but these errors were encountered: