removed ttable incremental analysis for postgres

This commit is contained in:
Jan Prochazka
2025-11-28 12:13:32 +01:00
parent 25b5341f76
commit 014e453e57
6 changed files with 46 additions and 149 deletions

View File

@@ -299,23 +299,6 @@ export class DatabaseAnalyser<TClient = any> {
}
}
objectIdConditionApplied(typeFields) {
if (!this.modifications || !typeFields || this.modifications.length == 0) {
return false;
}
if (this.modifications.some(x => typeFields.includes(x.objectTypeField) && x.action == 'all')) {
// do not filter objects
return false;
}
const filterIds = this.modifications
.filter(x => typeFields.includes(x.objectTypeField) && (x.action == 'add' || x.action == 'change'))
.map(x => x.objectId);
if (filterIds.length == 0) {
return false;
}
return true;
}
async getModifications() {
const snapshot = await this._getFastSnapshot();
if (!snapshot) return null;