Skip to content

Commit

Permalink
increased dashboard performance
Browse files Browse the repository at this point in the history
  • Loading branch information
rsehr committed Oct 30, 2024
1 parent 2145c63 commit 3a8ce96
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public class EntityDatabaseBean implements Serializable {
@Getter
private transient EntityConfig configuration;

public EntityDatabaseBean() {
}

private void loadConfiguration() {
XMLConfiguration config = ConfigPlugins.getPluginConfig("intranda_workflow_entity_editor");
config.setExpressionEngine(new XPathExpressionEngine());
Expand All @@ -41,7 +38,6 @@ public List<EntityType> getAllEntityTypes() {
if (configuration == null) {
loadConfiguration();
}

return configuration.getAllTypes();
} catch (RuntimeException e) {
Helper.setFehlerMeldung(e.getMessage());
Expand All @@ -50,6 +46,7 @@ public List<EntityType> getAllEntityTypes() {
}

public List<RowEntry> getEntityData(EntityType type) {

List<RowEntry> answer = new ArrayList<>();

StringBuilder sql = new StringBuilder();
Expand Down Expand Up @@ -80,7 +77,7 @@ public List<RowEntry> getEntityData(EntityType type) {
}

sql.append("order by date desc ");
sql.append("limit 500 ");
sql.append("limit 100 ");

List<?> rows = ProcessManager.runSQL(sql.toString());
for (Object obj : rows) {
Expand Down

0 comments on commit 3a8ce96

Please sign in to comment.