You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by gw...@apache.org on 2015/02/10 10:35:19 UTC

syncope git commit: [SYNCOPE-634] performance optimization for content loading

Repository: syncope
Updated Branches:
  refs/heads/1_2_X 128e0c556 -> 1ef68962f


[SYNCOPE-634] performance optimization for content loading


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/1ef68962
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/1ef68962
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/1ef68962

Branch: refs/heads/1_2_X
Commit: 1ef68962f561a6046e0f3d77e6908ee94cd3b433
Parents: 128e0c5
Author: Guido Wimmel <gw...@apache.org>
Authored: Tue Feb 10 10:33:22 2015 +0100
Committer: Guido Wimmel <gw...@apache.org>
Committed: Tue Feb 10 10:33:22 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/syncope/core/util/ContentLoaderHandler.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/1ef68962/core/src/main/java/org/apache/syncope/core/util/ContentLoaderHandler.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/util/ContentLoaderHandler.java b/core/src/main/java/org/apache/syncope/core/util/ContentLoaderHandler.java
index ea54a90..3b5a409 100644
--- a/core/src/main/java/org/apache/syncope/core/util/ContentLoaderHandler.java
+++ b/core/src/main/java/org/apache/syncope/core/util/ContentLoaderHandler.java
@@ -54,7 +54,7 @@ public class ContentLoaderHandler extends DefaultHandler {
     private Object[] getParameters(final String tableName, final Attributes attrs) {
         JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
 
-        Map<String, Integer> colTypes = jdbcTemplate.query("SELECT * FROM " + tableName,
+        Map<String, Integer> colTypes = jdbcTemplate.query("SELECT * FROM " + tableName + " WHERE 0=1",
                 new ResultSetExtractor<Map<String, Integer>>() {
 
             @Override