Skip to content

Slow Order By on localized field #3

@brunorafaelcosta

Description

@brunorafaelcosta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions