Faster query loading when results are not shown

pull/6272/head
Oliver Günther 7 years ago
parent 7554db9484
commit 39676140f2
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 7
      frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts
  2. 2
      frontend/app/modules/hal/dm-services/query-form-dm.service.ts

@ -155,6 +155,13 @@ export class WorkPackageEmbeddedTableComponent implements OnInit, OnDestroy {
}
private async loadQuery() {
// HACK: Decrease loading time of queries when results are not needed.
// We should allow the backend to disable results embedding instead.
if (!this.configuration.tableVisible) {
this.queryProps.pageSize = 1;
}
return this.QueryDm
.find(
this.queryProps,

@ -64,7 +64,7 @@ export class QueryFormDmService {
let payload:any = {};
if (!queryId) {
payload['name'] = '!!!__O__o__O__!!!'
payload['name'] = '!!!__O__o__O__!!!';
}
if (projectIdentifier) {

Loading…
Cancel
Save