From e70e657fa9e19ec6342ec3d1d9b4b0bf85421b87 Mon Sep 17 00:00:00 2001 From: Robert Butora <robert.butora@inaf.it> Date: Sat, 26 Oct 2024 15:47:43 +0200 Subject: [PATCH] removes ordering query results by obs_collection --- data-discovery/src/main/java/search/DbObstap.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/data-discovery/src/main/java/search/DbObstap.java b/data-discovery/src/main/java/search/DbObstap.java index ef7e7af..513c9fe 100644 --- a/data-discovery/src/main/java/search/DbObstap.java +++ b/data-discovery/src/main/java/search/DbObstap.java @@ -136,9 +136,6 @@ public class DbObstap if(qArgs.maxrec != null) theQuery += " LIMIT " + qArgs.maxrec; - - //theQuery += " ORDER BY obs_collection"; - LOGGER.fine(theQuery); List<String> pubdidList = new ArrayList<>(); @@ -215,12 +212,10 @@ public class DbObstap + inputRegion + " @> " + dbRegion + " AS dbInsideInput FROM obscore WHERE (obs_publisher_did IN (\'" +commaSepPubdids+"\'))"; - theQuery += " ORDER BY obs_collection"; - - //LOGGER.fine(theQuery); - List<Obstap> obstapList = new ArrayList<>(); + LOGGER.fine(theQuery); + LOGGER.fine("Connecting to: " + dbConnArgs.uri() + " with optional user/pwd: " + dbConnArgs.userName() +" / "+ dbConnArgs.password() ); try( -- GitLab