cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: CAY-2005 Improving generated DISTINCT performance on PostgreSQL
Date Tue, 21 Apr 2015 09:53:08 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 5ad9e9ff8 -> 397dd9524


CAY-2005 Improving generated DISTINCT performance on PostgreSQL

actually keeping the fix 4.0-only. 3.1 has different API and does not allow for an efficient
PK search among result columns


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/397dd952
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/397dd952
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/397dd952

Branch: refs/heads/master
Commit: 397dd9524fc1c58e5f32e4984d6508e60933e664
Parents: 5ad9e9f
Author: aadamchik <aadamchik@apache.org>
Authored: Tue Apr 21 12:45:22 2015 +0300
Committer: aadamchik <aadamchik@apache.org>
Committed: Tue Apr 21 12:52:14 2015 +0300

----------------------------------------------------------------------
 .../apache/cayenne/access/translator/select/SelectTranslator.java  | 2 +-
 .../org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/397dd952/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/SelectTranslator.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/SelectTranslator.java
b/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/SelectTranslator.java
index 632a5e5..a62b4d1 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/SelectTranslator.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/SelectTranslator.java
@@ -219,7 +219,7 @@ public class SelectTranslator extends QueryAssembler {
 	 * improve performance.
 	 *
 	 * @return string representing the DISTINCT statement
-	 * @since 3.1.1
+	 * @since 4.0
 	 */
 	protected String buildDistinctStatement() {
 		return "DISTINCT";

http://git-wip-us.apache.org/repos/asf/cayenne/blob/397dd952/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java
b/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java
index 0bb8727..84b3521 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresSelectTranslator.java
@@ -55,7 +55,7 @@ class PostgresSelectTranslator extends SelectTranslator {
 	}
 
 	/**
-	 * @since 3.1.1
+	 * @since 4.0
 	 */
 	@Override
 	protected String buildDistinctStatement() {


Mime
View raw message