mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
UBERF-8592: Fix live query performance (#7189)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user