Skip to content
Snippets Groups Projects
Commit 4ad6189a authored by Martin Weise's avatar Martin Weise
Browse files

maybe eager loading for table columns

parent 24d02aee
No related branches found
No related tags found
3 merge requests!81New stable release,!43Merge dev to master,!23Sprint results
...@@ -225,7 +225,9 @@ public class TableService { ...@@ -225,7 +225,9 @@ public class TableService {
// TODO ms what is this for? It does ony print to stdout // TODO ms what is this for? It does ony print to stdout
public QueryResultDto showData(Long databaseId, Long tableId) throws ImageNotSupportedException, public QueryResultDto showData(Long databaseId, Long tableId) throws ImageNotSupportedException,
DatabaseNotFoundException, TableNotFoundException, DatabaseConnectionException, DataProcessingException { DatabaseNotFoundException, TableNotFoundException, DatabaseConnectionException, DataProcessingException {
QueryResultDto queryResult = postgresService.getAllRows(findDatabase(databaseId), findById(databaseId, tableId)); final Table tmpTable = findById(databaseId, tableId);
log.debug("=================> {}", tmpTable);
QueryResultDto queryResult = postgresService.getAllRows(findDatabase(databaseId), tmpTable);
for (Map<String, Object> m : queryResult.getResult()) { for (Map<String, Object> m : queryResult.getResult()) {
for (Map.Entry<String, Object> entry : m.entrySet()) { for (Map.Entry<String, Object> entry : m.entrySet()) {
log.debug("{}: {}", entry.getKey(), entry.getValue()); log.debug("{}: {}", entry.getKey(), entry.getValue());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment