postgresql analyse optyimalization #273

This commit is contained in:
Jan Prochazka
2022-06-02 10:57:53 +02:00
parent a6f6680788
commit ca3f1d720d
8 changed files with 157 additions and 23 deletions

View File

@@ -170,7 +170,15 @@ export class DatabaseAnalyser {
// return this.structure.tables.find((x) => x.objectId == id);
// }
containsObjectIdCondition(typeFields) {
return this.createQueryCore('=OBJECT_ID_CONDITION', typeFields) != ' is not null';
}
createQuery(template, typeFields) {
return this.createQueryCore(template, typeFields);
}
createQueryCore(template, typeFields) {
// let res = template;
if (this.singleObjectFilter) {
const { typeField } = this.singleObjectFilter;