When trying to order by a localized property, the query executed by EntityFramework is very slow.
I've the Categories table with 9 millions of rows.
var categories = this.Categories
.Select(c => new
{
ID = c.ID,
Name = c.Name
})
.Localize(new CultureInfo("fr-Fr")
.OrderBy(x => x.Name)
.Skip(1000).Take(100)
.ToList();
Maybe you guys have a solution.
Thanks in advance