diff --git a/ChangeLog/7.1.4_dev.txt b/ChangeLog/7.1.4_dev.txt index 754f28c4ee..2c98bef46b 100644 --- a/ChangeLog/7.1.4_dev.txt +++ b/ChangeLog/7.1.4_dev.txt @@ -1,2 +1,3 @@ [main] Addressed IndexOutOfRangeException on translation of certain queries with aggregates -[main] Notification to BuildLog when a hierarchy changes KeyGeneratorKind value to None \ No newline at end of file +[main] Notification to BuildLog when a hierarchy changes KeyGeneratorKind value to None +[postgresql] Added explicit nulls setting for both column order directions to improve OrderBy/OrderByDescending performance \ No newline at end of file diff --git a/Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0/Translator.cs b/Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0/Translator.cs index 22233fd625..cf3954edd8 100644 --- a/Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0/Translator.cs +++ b/Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0/Translator.cs @@ -30,6 +30,9 @@ public override void Translate(SqlCompilerContext context, object literalValue) } } + public override void TranslateSortOrder(IOutput output, bool ascending) => + output.Append(ascending ? "ASC NULLS FIRST" : "DESC NULLS LAST"); + // Constructors public Translator(SqlDriver driver)