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

maybe eager loading for table columns

Former-commit-id: 4ad6189a
parent 6a2dccc0
No related branches found
No related tags found
1 merge request!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