mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
perspectives: loading only neccessary columns
This commit is contained in:
@@ -84,10 +84,10 @@ export class PerspectiveDisplay {
|
||||
this.fillColumns(root.childNodes, []);
|
||||
this.columnLevelCount = _max(this.columns.map(x => x.parentNodes.length)) + 1;
|
||||
const collectedRows = this.collectRows(rows, root.childNodes);
|
||||
console.log('COLLECTED', collectedRows);
|
||||
// console.log('COLLECTED', collectedRows);
|
||||
// this.mergeRows(collectedRows);
|
||||
this.mergeRows(collectedRows);
|
||||
console.log('MERGED', this.rows);
|
||||
// console.log('MERGED', this.rows);
|
||||
}
|
||||
|
||||
fillColumns(children: PerspectiveTreeNode[], parentNodes: PerspectiveTreeNode[]) {
|
||||
@@ -126,11 +126,6 @@ export class PerspectiveDisplay {
|
||||
const columnNodes = nodes.filter(x => x.isChecked && !x.isExpandable);
|
||||
const treeNodes = nodes.filter(x => x.isChecked && x.isExpandable);
|
||||
|
||||
console.log(
|
||||
'columnNodes',
|
||||
columnNodes.map(x => x.fieldName)
|
||||
);
|
||||
|
||||
const columnIndexes = columnNodes.map(node => this.findColumnIndexFromNode(node));
|
||||
|
||||
// const nodeStartIndexes = new WeakMap();
|
||||
|
||||
Reference in New Issue
Block a user