UBERF-8592: Fix live query performance (#7189)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-11-21 14:38:14 +07:00
committed by GitHub
parent 13df48d7c9
commit b5f24fbd5d
25 changed files with 674 additions and 380 deletions
+6
View File
@@ -1082,6 +1082,12 @@ abstract class PostgresAdapterBase implements DbAdapter {
if (projection === undefined) {
res.push(`${baseDomain}.*`)
} else {
if (projection._id === undefined) {
res.push(`${baseDomain}."_id" AS "_id"`)
}
if (projection._class === undefined) {
res.push(`${baseDomain}."_class" AS "_class"`)
}
for (const key in projection) {
if (isDataField(baseDomain, key)) {
if (!dataAdded) {