From 726969aa334a1720b04f3ad4a47c7c1b508f92bf Mon Sep 17 00:00:00 2001 From: Sonarly Claude Code Date: Fri, 6 Mar 2026 07:51:43 +0000 Subject: [PATCH] Slow POST /metadata: ViewEntity query with 6 LEFT JOINs takes 1.6s on cache miss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://sonarly.com/issue/3775?type=bug The `FindAllCoreViews` query generates a single SQL statement with 6 LEFT JOINs across 5 independent one-to-many relationships, creating a cartesian product explosion that takes 1618ms. Caching masks the issue for most requests, but cache misses cause ~2s page loads. Fix: The `findByWorkspaceId` method in `view.service.ts` loaded 6 relations via TypeORM's default `join` strategy, which generates a **single SQL statement with 6 LEFT JOINs**. When 5 of those are independent one-to-many relationships (viewFields, viewFilters, viewSorts, viewGroups, viewFilterGroups), the result set explodes combinatorially — a view with 20 fields × 5 filters × 3 sorts × 5 groups × 2 filter groups yields 3,000 rows for a single view. Two changes were made: **1. Add `relationLoadStrategy: 'query'`** — instructs TypeORM to issue one `SELECT … WHERE viewId IN (…)` per relation instead of a single monolithic JOIN query. This avoids the cartesian product entirely. Available since TypeORM 0.3.12; the project uses 0.3.20. **2. Remove the `'workspace'` relation** — the `workspace` ManyToOne (inherited from `WorkspaceRelatedEntity`) adds 30+ workspace columns to every row of the result set. It is not needed: `ViewDTO` only exposes `workspaceId` (a scalar column already on the view row), and no call site downstream uses `view.workspace`. ```typescript file=packages/twenty-server/src/engine/metadata-modules/view/services/view.service.ts lines=380-395 const views = await this.viewRepository.find({ where: { workspaceId, deletedAt: IsNull(), ...(viewTypes && viewTypes.length > 0 && { type: In(viewTypes) }), }, order: { position: 'ASC' }, relations: [ 'viewFields', 'viewFilters', 'viewSorts', 'viewGroups', 'viewFilterGroups', ], relationLoadStrategy: 'query', }); ``` After the fix TypeORM will issue 6 lean, targeted queries (one per relation) rather than one 120-column cartesian-product query, reducing the expected cache-miss latency from ~1600ms to well under 100ms. --- .sonarly_spans_1772783228.json | 814 ++++++++++++++++++ .../view/services/view.service.ts | 2 +- 2 files changed, 815 insertions(+), 1 deletion(-) create mode 100644 .sonarly_spans_1772783228.json diff --git a/.sonarly_spans_1772783228.json b/.sonarly_spans_1772783228.json new file mode 100644 index 00000000000..b32f19783bc --- /dev/null +++ b/.sonarly_spans_1772783228.json @@ -0,0 +1,814 @@ +[ + { + "timestamp": 1772780995.332052, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.052, + "op": "middleware.express", + "span_id": "37e9694bebe20239", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "", + "origin": "auto.http.otel.express", + "data": { + "express.name": "", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "1985576209a18698" + }, + { + "timestamp": 1772780995.332137, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.137, + "op": "middleware.express", + "span_id": "13c9b7203ebee408", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "session", + "origin": "auto.http.otel.express", + "data": { + "express.name": "session", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "21d6f40cfb511982" + }, + { + "timestamp": 1772780995.33224, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.24, + "op": "middleware.express", + "span_id": "63791f2b85e1b234", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "jsonParser", + "origin": "auto.http.otel.express", + "data": { + "express.name": "jsonParser", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "c81e963dad9ebc6c" + }, + { + "timestamp": 1772780995.33203, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.03, + "op": "middleware.express", + "span_id": "2d454c6d1dfd8aa6", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "urlencodedParser", + "origin": "auto.http.otel.express", + "data": { + "express.name": "urlencodedParser", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "05184d48507d1fda" + }, + { + "timestamp": 1772780995.332032, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.032, + "op": "middleware.express", + "span_id": "392d9f21e2d637d3", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "graphqlUploadExpressMiddleware", + "origin": "auto.http.otel.express", + "data": { + "express.name": "graphqlUploadExpressMiddleware", + "express.type": "middleware", + "http.route": "/metadata", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "0139f47bcfef11a0" + }, + { + "timestamp": 1772780995.33204, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.04, + "op": "middleware.express", + "span_id": "035bbbca69c7b94c", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "corsMiddleware", + "origin": "auto.http.otel.express", + "data": { + "express.name": "corsMiddleware", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "e6088cf8b370ed60" + }, + { + "timestamp": 1772780995.332017, + "start_timestamp": 1772780995.332, + "exclusive_time": 0.017, + "op": "middleware.express", + "span_id": "7a08d6c702e5b225", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "jsonParser", + "origin": "auto.http.otel.express", + "data": { + "express.name": "jsonParser", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "c81e963dad9ebc6c" + }, + { + "timestamp": 1772780995.333015, + "start_timestamp": 1772780995.333, + "exclusive_time": 0.015, + "op": "middleware.express", + "span_id": "5ed26c33d8e44443", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "urlencodedParser", + "origin": "auto.http.otel.express", + "data": { + "express.name": "urlencodedParser", + "express.type": "middleware", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "05184d48507d1fda" + }, + { + "timestamp": 1772780995.418951, + "start_timestamp": 1772780995.333, + "exclusive_time": 48.331, + "op": "request_handler.express", + "span_id": "d2d5c5b8e2723fb0", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "/metadata", + "origin": "auto.http.otel.express", + "data": { + "express.name": "/metadata", + "express.type": "request_handler", + "http.route": "/metadata", + "sentry.op": "request_handler.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "op": "request_handler.express", + "status": "ok", + "trace.status": "ok", + "name": "request_handler.express" + }, + "hash": "f0fa4b47d47d39bf" + }, + { + "timestamp": 1772780995.334144, + "start_timestamp": 1772780995.333, + "exclusive_time": 1.144, + "op": "db", + "span_id": "fed2263b5fa59f40", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT \"WorkspaceEntity\".\"id\" AS \"WorkspaceEntity_id\", \"WorkspaceEntity\".\"displayName\" AS \"WorkspaceEntity_displayName\", \"WorkspaceEntity\".\"logo\" AS \"WorkspaceEntity_logo\", \"WorkspaceEntity\".\"logoFileId\" AS \"WorkspaceEntity_logoFileId\", \"WorkspaceEntity\".\"inviteHash\" AS \"WorkspaceEntity_inviteHash\", \"WorkspaceEntity\".\"deletedAt\" AS \"WorkspaceEntity_deletedAt\", \"WorkspaceEntity\".\"createdAt\" AS \"WorkspaceEntity_createdAt\", \"WorkspaceEntity\".\"updatedAt\" AS \"WorkspaceEntity_updatedAt\", \"WorkspaceEntity\".\"allowImpersonation\" AS \"WorkspaceEntity_allowImpersonation\", \"WorkspaceEntity\".\"isPublicInviteLinkEnabled\" AS \"WorkspaceEntity_isPublicInviteLinkEnabled\", \"WorkspaceEntity\".\"trashRetentionDays\" AS \"WorkspaceEntity_trashRetentionDays\", \"WorkspaceEntity\".\"eventLogRetentionDays\" AS \"WorkspaceEntity_eventLogRetentionDays\", \"WorkspaceEntity\".\"activationStatus\" AS \"WorkspaceEntity_activationStatus\", \"WorkspaceEntity\".\"suspendedAt\" AS \"WorkspaceEntity_suspendedAt\", \"WorkspaceEntity\".\"metadataVersion\" AS \"WorkspaceEntity_metadataVersion\", \"WorkspaceEntity\".\"databaseUrl\" AS \"WorkspaceEntity_databaseUrl\", \"WorkspaceEntity\".\"databaseSchema\" AS \"WorkspaceEntity_databaseSchema\", \"WorkspaceEntity\".\"subdomain\" AS \"WorkspaceEntity_subdomain\", \"WorkspaceEntity\".\"customDomain\" AS \"WorkspaceEntity_customDomain\", \"WorkspaceEntity\".\"isGoogleAuthEnabled\" AS \"WorkspaceEntity_isGoogleAuthEnabled\", \"WorkspaceEntity\".\"isGoogleAuthBypassEnabled\" AS \"WorkspaceEntity_isGoogleAuthBypassEnabled\", \"WorkspaceEntity\".\"isTwoFactorAuthenticationEnforced\" AS \"WorkspaceEntity_isTwoFactorAuthenticationEnforced\", \"WorkspaceEntity\".\"isPasswordAuthEnabled\" AS \"WorkspaceEntity_isPasswordAuthEnabled\", \"WorkspaceEntity\".\"isPasswordAuthBypassEnabled\" AS \"WorkspaceEntity_isPasswordAuthBypassEnabled\", \"WorkspaceEntity\".\"isMicrosoftAuthEnabled\" AS \"WorkspaceEntity_isMicrosoftAuthEnabled\", \"WorkspaceEntity\".\"isMicrosoftAuthBypassEnabled\" AS \"WorkspaceEntity_isMicrosoftAuthBypassEnabled\", \"WorkspaceEntity\".\"isCustomDomainEnabled\" AS \"WorkspaceEntity_isCustomDomainEnabled\", \"WorkspaceEntity\".\"editableProfileFields\" AS \"WorkspaceEntity_editableProfileFields\", \"WorkspaceEntity\".\"defaultRoleId\" AS \"WorkspaceEntity_defaultRoleId\", \"WorkspaceEntity\".\"version\" AS \"WorkspaceEntity_version\", \"WorkspaceEntity\".\"fastModel\" AS \"WorkspaceEntity_fastModel\", \"WorkspaceEntity\".\"smartModel\" AS \"WorkspaceEntity_smartModel\", \"WorkspaceEntity\".\"aiAdditionalInstructions\" AS \"WorkspaceEntity_aiAdditionalInstructions\", \"WorkspaceEntity\".\"workspaceCustomApplicationId\" AS \"WorkspaceEntity_workspaceCustomApplicationId\", \"WorkspaceEntity\".\"routerModel\" AS \"WorkspaceEntity_routerModel\" FROM \"core\".\"workspace\" \"WorkspaceEntity\" WHERE ( ((\"WorkspaceEntity\".\"id\" = $1)) ) AND ( \"WorkspaceEntity\".\"deletedAt\" IS NULL ) LIMIT 1", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "[Filtered]", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM workspace WorkspaceEntity WHERE (id = %s) AND (deletedAt IS NULL) LIMIT %s", + "domain": ",workspace,", + "group": "7ae6cffe655e522d", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "10003206e3a65547" + }, + { + "timestamp": 1772780995.335575, + "start_timestamp": 1772780995.335, + "exclusive_time": 0.575, + "op": "db", + "span_id": "0720414caf782bef", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT UserEntity.id AS UserEntity_id, UserEntity.firstName AS UserEntity_firstName,\n UserEntity.lastName AS UserEntity_lastName, UserEntity.email AS UserEntity_email,\n UserEntity.defaultAvatarUrl AS UserEntity_defaultAvatarUrl, UserEntity.isEmailVerified AS UserEntity_isEmailVerified,\n UserEntity.disabled AS UserEntity_disabled, UserEntity.passwordHash AS UserEntity_passwordHash,\n UserEntity.canImpersonate AS UserEntity_canImpersonate,\n UserEntity.canAccessFullAdminPanel AS UserEntity_canAccessFullAdminPanel, UserEntity.createdAt AS UserEntity_createdAt,\n UserEntity.updatedAt AS UserEntity_updatedAt, UserEntity.deletedAt AS UserEntity_deletedAt,\n UserEntity.locale AS UserEntity_locale\nFROM core.user UserEntity\nWHERE (((UserEntity.id = $1)))\n AND (UserEntity.deletedAt IS NULL)\nLIMIT 1", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "[Filtered]", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM user UserEntity WHERE (id = %s) AND (deletedAt IS NULL) LIMIT %s", + "domain": ",user,", + "group": "0a2ac1c51d786332", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "fe3b26bd6502ec73" + }, + { + "timestamp": 1772780995.336805, + "start_timestamp": 1772780995.336, + "exclusive_time": 0.805, + "op": "db", + "span_id": "4bae23c7a9ab2e9a", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT DISTINCT \"distinctAlias\".\"UserWorkspaceEntity_id\" AS \"ids_UserWorkspaceEntity_id\" FROM (SELECT \"UserWorkspaceEntity\".\"workspaceId\" AS \"UserWorkspaceEntity_workspaceId\", \"UserWorkspaceEntity\".\"id\" AS \"UserWorkspaceEntity_id\", \"UserWorkspaceEntity\".\"userId\" AS \"UserWorkspaceEntity_userId\", \"UserWorkspaceEntity\".\"defaultAvatarUrl\" AS \"UserWorkspaceEntity_defaultAvatarUrl\", \"UserWorkspaceEntity\".\"locale\" AS \"UserWorkspaceEntity_locale\", \"UserWorkspaceEntity\".\"createdAt\" AS \"UserWorkspaceEntity_createdAt\", \"UserWorkspaceEntity\".\"updatedAt\" AS \"UserWorkspaceEntity_updatedAt\", \"UserWorkspaceEntity\".\"deletedAt\" AS \"UserWorkspaceEntity_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"id\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_id\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"firstName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_firstName\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"lastName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_lastName\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"email\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_email\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"defaultAvatarUrl\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_defaultAvatarUrl\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"isEmailVerified\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_isEmailVerified\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"disabled\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_disabled\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"passwordHash\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_passwordHash\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"canImpersonate\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_canImpersonate\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"canAccessFullAdminPanel\" AS \"dd5a54b97f8d0a8da6e1a4fd6bed56cba80bdfef\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"createdAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_createdAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"updatedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_updatedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"deletedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"locale\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_locale\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"id\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_id\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"displayName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_displayName\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"logo\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_logo\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"logoFileId\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_logoFileId\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"inviteHash\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_inviteHash\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"deletedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"createdAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_createdAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"updatedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_updatedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"allowImpersonation\" AS \"d01268d3619d15855d9aa931d70e345fed5e219d\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPublicInviteLinkEnabled\" AS \"34dd1420dba277d6207ad489392e1efa961523e8\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"trashRetentionDays\" AS \"eee8f3c284880893ba42d4bb6edba376d2be7956\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"eventLogRetentionDays\" AS \"18e838b571f0c7a6e05ee6a1f47ddd1ee2d73e53\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"activationStatus\" AS \"75924b76b2fc613cdc91ce25dfcdfe81503a161f\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"suspendedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_suspendedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"metadataVersion\" AS \"7aed2c21227eec721f9ff327691996dfc03953a0\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"databaseUrl\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_databaseUrl\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"databaseSchema\" AS \"b67e47029b3f679356f2fb0dfdde7998f9e30ecb\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"subdomain\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_subdomain\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"customDomain\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_customDomain\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isGoogleAuthEnabled\" AS \"e75e69730351253e4437cef775446070a041fd53\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isGoogleAuthBypassEnabled\" AS \"fb0716415ae3e5126c4f144529926d08d0d48183\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isTwoFactorAuthenticationEnforced\" AS \"e55f860a20288dffbc376243d797df38f4f49d0e\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPasswordAuthEnabled\" AS \"e9a3452bbb24b5b29a3ec5aa4d3e7a32d355b537\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPasswordAuthBypassEnabled\" AS \"af14c9e3c685e9e0428561f567d4240c3a4f7ef0\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isMicrosoftAuthEnabled\" AS \"748656adf4378839af80f9c5aa7801ad88addfb7\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isMicrosoftAuthBypassEnabled\" AS \"f8a2717703ecfcb51176ebb8ca7a2a938a7e985c\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isCustomDomainEnabled\" AS \"43c8b5714068af455e8058068d198c620631ee2c\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"editableProfileFields\" AS \"7d9653af36304b4d95da7a46af3f51f73f862e98\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"defaultRoleId\" AS \"112f86d1573ef4da5b7855899b72ab30519ac38b\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"version\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_version\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"fastModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_fastModel\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"smartModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_smartModel\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"aiAdditionalInstructions\" AS \"18a9d7d9e7ad2b3885ff6037bfcce48d50292eb3\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"workspaceCustomApplicationId\" AS \"a039c56adac53c32e057ccac777a766f191e9d56\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"routerModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_routerModel\" FROM \"core\".\"userWorkspace\" \"UserWorkspaceEntity\" LEFT JOIN \"core\".\"user\" \"UserWorkspaceEntity__UserWorkspaceEntity_user\" ON \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"id\"=\"UserWorkspaceEntity\".\"userId\" AND (\"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"workspace\" \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\" ON \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"id\"=\"UserWorkspaceEntity\".\"workspaceId\" AND (\"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"deletedAt\" IS NULL) WHERE ( ((\"UserWorkspaceEntity\".\"id\" = $1)) ) AND ( \"UserWorkspaceEntity\".\"deletedAt\" IS NULL )) \"distinctAlias\" ORDER BY \"UserWorkspaceEntity_id\" ASC LIMIT 1", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "[Filtered]", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT DISTINCT UserWorkspaceEntity_id FROM (SELECT .. FROM userWorkspace UserWorkspaceEntity LEFT JOIN user UserWorkspaceEntity__UserWorkspaceEntity_user ON id = userId AND (deletedAt IS NULL) LEFT *", + "domain": ",user,userworkspace,workspace,", + "group": "35bd038d90026ff5", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "cffd172e56a58c70" + }, + { + "timestamp": 1772780995.338399, + "start_timestamp": 1772780995.337, + "exclusive_time": 1.399, + "op": "db", + "span_id": "5d268d7ebabcc09c", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT \"UserWorkspaceEntity\".\"workspaceId\" AS \"UserWorkspaceEntity_workspaceId\", \"UserWorkspaceEntity\".\"id\" AS \"UserWorkspaceEntity_id\", \"UserWorkspaceEntity\".\"userId\" AS \"UserWorkspaceEntity_userId\", \"UserWorkspaceEntity\".\"defaultAvatarUrl\" AS \"UserWorkspaceEntity_defaultAvatarUrl\", \"UserWorkspaceEntity\".\"locale\" AS \"UserWorkspaceEntity_locale\", \"UserWorkspaceEntity\".\"createdAt\" AS \"UserWorkspaceEntity_createdAt\", \"UserWorkspaceEntity\".\"updatedAt\" AS \"UserWorkspaceEntity_updatedAt\", \"UserWorkspaceEntity\".\"deletedAt\" AS \"UserWorkspaceEntity_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"id\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_id\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"firstName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_firstName\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"lastName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_lastName\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"email\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_email\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"defaultAvatarUrl\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_defaultAvatarUrl\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"isEmailVerified\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_isEmailVerified\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"disabled\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_disabled\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"passwordHash\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_passwordHash\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"canImpersonate\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_canImpersonate\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"canAccessFullAdminPanel\" AS \"dd5a54b97f8d0a8da6e1a4fd6bed56cba80bdfef\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"createdAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_createdAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"updatedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_updatedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"deletedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"locale\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_user_locale\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"id\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_id\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"displayName\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_displayName\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"logo\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_logo\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"logoFileId\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_logoFileId\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"inviteHash\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_inviteHash\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"deletedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_deletedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"createdAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_createdAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"updatedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_updatedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"allowImpersonation\" AS \"d01268d3619d15855d9aa931d70e345fed5e219d\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPublicInviteLinkEnabled\" AS \"34dd1420dba277d6207ad489392e1efa961523e8\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"trashRetentionDays\" AS \"eee8f3c284880893ba42d4bb6edba376d2be7956\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"eventLogRetentionDays\" AS \"18e838b571f0c7a6e05ee6a1f47ddd1ee2d73e53\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"activationStatus\" AS \"75924b76b2fc613cdc91ce25dfcdfe81503a161f\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"suspendedAt\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_suspendedAt\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"metadataVersion\" AS \"7aed2c21227eec721f9ff327691996dfc03953a0\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"databaseUrl\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_databaseUrl\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"databaseSchema\" AS \"b67e47029b3f679356f2fb0dfdde7998f9e30ecb\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"subdomain\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_subdomain\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"customDomain\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_customDomain\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isGoogleAuthEnabled\" AS \"e75e69730351253e4437cef775446070a041fd53\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isGoogleAuthBypassEnabled\" AS \"fb0716415ae3e5126c4f144529926d08d0d48183\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isTwoFactorAuthenticationEnforced\" AS \"e55f860a20288dffbc376243d797df38f4f49d0e\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPasswordAuthEnabled\" AS \"e9a3452bbb24b5b29a3ec5aa4d3e7a32d355b537\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isPasswordAuthBypassEnabled\" AS \"af14c9e3c685e9e0428561f567d4240c3a4f7ef0\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isMicrosoftAuthEnabled\" AS \"748656adf4378839af80f9c5aa7801ad88addfb7\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isMicrosoftAuthBypassEnabled\" AS \"f8a2717703ecfcb51176ebb8ca7a2a938a7e985c\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"isCustomDomainEnabled\" AS \"43c8b5714068af455e8058068d198c620631ee2c\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"editableProfileFields\" AS \"7d9653af36304b4d95da7a46af3f51f73f862e98\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"defaultRoleId\" AS \"112f86d1573ef4da5b7855899b72ab30519ac38b\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"version\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_version\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"fastModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_fastModel\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"smartModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_smartModel\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"aiAdditionalInstructions\" AS \"18a9d7d9e7ad2b3885ff6037bfcce48d50292eb3\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"workspaceCustomApplicationId\" AS \"a039c56adac53c32e057ccac777a766f191e9d56\", \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"routerModel\" AS \"UserWorkspaceEntity__UserWorkspaceEntity_workspace_routerModel\" FROM \"core\".\"userWorkspace\" \"UserWorkspaceEntity\" LEFT JOIN \"core\".\"user\" \"UserWorkspaceEntity__UserWorkspaceEntity_user\" ON \"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"id\"=\"UserWorkspaceEntity\".\"userId\" AND (\"UserWorkspaceEntity__UserWorkspaceEntity_user\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"workspace\" \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\" ON \"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"id\"=\"UserWorkspaceEntity\".\"workspaceId\" AND (\"UserWorkspaceEntity__UserWorkspaceEntity_workspace\".\"deletedAt\" IS NULL) WHERE ( ((\"UserWorkspaceEntity\".\"id\" = $1)) ) AND ( \"UserWorkspaceEntity\".\"deletedAt\" IS NULL ) AND ( \"UserWorkspaceEntity\".\"id\" IN ($2) )", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "[Filtered]", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM userWorkspace UserWorkspaceEntity LEFT JOIN user UserWorkspaceEntity__UserWorkspaceEntity_user ON id = userId AND (deletedAt IS NULL) LEFT JOIN workspace UserWorkspaceEntity__UserWorks*", + "domain": ",user,userworkspace,workspace,", + "group": "253bb81b98bfcf38", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "63b483a1bd8a25b6" + }, + { + "timestamp": 1772780995.362996, + "start_timestamp": 1772780995.359, + "exclusive_time": 3.996, + "op": "db", + "span_id": "cd550e556153fe2d", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT \"ObjectMetadataEntity\".\"workspaceId\" AS \"ObjectMetadataEntity_workspaceId\", \"ObjectMetadataEntity\".\"universalIdentifier\" AS \"ObjectMetadataEntity_universalIdentifier\", \"ObjectMetadataEntity\".\"applicationId\" AS \"ObjectMetadataEntity_applicationId\", \"ObjectMetadataEntity\".\"id\" AS \"ObjectMetadataEntity_id\", \"ObjectMetadataEntity\".\"dataSourceId\" AS \"ObjectMetadataEntity_dataSourceId\", \"ObjectMetadataEntity\".\"nameSingular\" AS \"ObjectMetadataEntity_nameSingular\", \"ObjectMetadataEntity\".\"namePlural\" AS \"ObjectMetadataEntity_namePlural\", \"ObjectMetadataEntity\".\"labelSingular\" AS \"ObjectMetadataEntity_labelSingular\", \"ObjectMetadataEntity\".\"labelPlural\" AS \"ObjectMetadataEntity_labelPlural\", \"ObjectMetadataEntity\".\"description\" AS \"ObjectMetadataEntity_description\", \"ObjectMetadataEntity\".\"icon\" AS \"ObjectMetadataEntity_icon\", \"ObjectMetadataEntity\".\"standardOverrides\" AS \"ObjectMetadataEntity_standardOverrides\", \"ObjectMetadataEntity\".\"targetTableName\" AS \"ObjectMetadataEntity_targetTableName\", \"ObjectMetadataEntity\".\"isCustom\" AS \"ObjectMetadataEntity_isCustom\", \"ObjectMetadataEntity\".\"isRemote\" AS \"ObjectMetadataEntity_isRemote\", \"ObjectMetadataEntity\".\"isActive\" AS \"ObjectMetadataEntity_isActive\", \"ObjectMetadataEntity\".\"isSystem\" AS \"ObjectMetadataEntity_isSystem\", \"ObjectMetadataEntity\".\"isUIReadOnly\" AS \"ObjectMetadataEntity_isUIReadOnly\", \"ObjectMetadataEntity\".\"isAuditLogged\" AS \"ObjectMetadataEntity_isAuditLogged\", \"ObjectMetadataEntity\".\"isSearchable\" AS \"ObjectMetadataEntity_isSearchable\", \"ObjectMetadataEntity\".\"duplicateCriteria\" AS \"ObjectMetadataEntity_duplicateCriteria\", \"ObjectMetadataEntity\".\"shortcut\" AS \"ObjectMetadataEntity_shortcut\", \"ObjectMetadataEntity\".\"labelIdentifierFieldMetadataId\" AS \"ObjectMetadataEntity_labelIdentifierFieldMetadataId\", \"ObjectMetadataEntity\".\"imageIdentifierFieldMetadataId\" AS \"ObjectMetadataEntity_imageIdentifierFieldMetadataId\", \"ObjectMetadataEntity\".\"isLabelSyncedWithName\" AS \"ObjectMetadataEntity_isLabelSyncedWithName\", \"ObjectMetadataEntity\".\"createdAt\" AS \"ObjectMetadataEntity_createdAt\", \"ObjectMetadataEntity\".\"updatedAt\" AS \"ObjectMetadataEntity_updatedAt\" FROM \"core\".\"objectMetadata\" \"ObjectMetadataEntity\" WHERE ((\"ObjectMetadataEntity\".\"workspaceId\" = $1))", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "SELECT \"ObjectMetadataEntity\".\"workspaceId\" AS \"ObjectMetadataEntity_workspaceId\", \"ObjectMetadataEntity\".\"universalIdentifier\" AS \"ObjectMetadataEntity_universalIdentifier\", \"ObjectMetadataEntity\".\"applicationId\" AS \"ObjectMetadataEntity_applicationId\", \"ObjectMetadataEntity\".\"id\" AS \"ObjectMetadataEntity_id\", \"ObjectMetadataEntity\".\"dataSourceId\" AS \"ObjectMetadataEntity_dataSourceId\", \"ObjectMetadataEntity\".\"nameSingular\" AS \"ObjectMetadataEntity_nameSingular\", \"ObjectMetadataEntity\".\"namePlural\" AS \"ObjectMetadataEntity_namePlural\", \"ObjectMetadataEntity\".\"labelSingular\" AS \"ObjectMetadataEntity_labelSingular\", \"ObjectMetadataEntity\".\"labelPlural\" AS \"ObjectMetadataEntity_labelPlural\", \"ObjectMetadataEntity\".\"description\" AS \"ObjectMetadataEntity_description\", \"ObjectMetadataEntity\".\"icon\" AS \"ObjectMetadataEntity_icon\", \"ObjectMetadataEntity\".\"standardOverrides\" AS \"ObjectMetadataEntity_standardOverrides\", \"ObjectMetadataEntity\".\"targetTableName\" AS \"ObjectMetadataEntity_targetTableName\", \"ObjectMetadataEntity\".\"isCustom\" AS \"ObjectMetadataEntity_isCustom\", \"ObjectMetadataEntity\".\"isRemote\" AS \"ObjectMetadataEntity_isRemote\", \"ObjectMetadataEntity\".\"isActive\" AS \"ObjectMetadataEntity_isActive\", \"ObjectMetadataEntity\".\"isSystem\" AS \"ObjectMetadataEntity_isSystem\", \"ObjectMetadataEntity\".\"isUIReadOnly\" AS \"ObjectMetadataEntity_isUIReadOnly\", \"ObjectMetadataEntity\".\"isAuditLogged\" AS \"ObjectMetadataEntity_isAuditLogged\", \"ObjectMetadataEntity\".\"isSearchable\" AS \"ObjectMetadataEntity_isSearchable\", \"ObjectMetadataEntity\".\"duplicateCriteria\" AS \"ObjectMetadataEntity_duplicateCriteria\", \"ObjectMetadataEntity\".\"shortcut\" AS \"ObjectMetadataEntity_shortcut\", \"ObjectMetadataEntity\".\"labelIdentifierFieldMetadataId\" AS \"ObjectMetadataEntity_labelIdentifierFieldMetadataId\", \"ObjectMetadataEntity\".\"imageIdentifierFieldMetadataId\" AS \"ObjectMetadataEntity_imageIdentifierFieldMetadataId\", \"ObjectMetadataEntity\".\"isLabelSyncedWithName\" AS \"ObjectMetadataEntity_isLabelSyncedWithName\", \"ObjectMetadataEntity\".\"createdAt\" AS \"ObjectMetadataEntity_createdAt\", \"ObjectMetadataEntity\".\"updatedAt\" AS \"ObjectMetadataEntity_updatedAt\" FROM \"core\".\"objectMetadata\" \"ObjectMetadataEntity\" WHERE ((\"ObjectMetadataEntity\".\"workspaceId\" = $1))", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM objectMetadata ObjectMetadataEntity WHERE (workspaceId = %s)", + "domain": ",objectmetadata,", + "group": "23469279bae8ec49", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "a644b5b0068b9b28" + }, + { + "timestamp": 1772780995.390688, + "start_timestamp": 1772780995.359, + "exclusive_time": 31.688, + "op": "db", + "span_id": "b9063a2ab27478d4", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT \"FieldMetadataEntity\".\"workspaceId\" AS \"FieldMetadataEntity_workspaceId\", \"FieldMetadataEntity\".\"universalIdentifier\" AS \"FieldMetadataEntity_universalIdentifier\", \"FieldMetadataEntity\".\"applicationId\" AS \"FieldMetadataEntity_applicationId\", \"FieldMetadataEntity\".\"id\" AS \"FieldMetadataEntity_id\", \"FieldMetadataEntity\".\"objectMetadataId\" AS \"FieldMetadataEntity_objectMetadataId\", \"FieldMetadataEntity\".\"type\" AS \"FieldMetadataEntity_type\", \"FieldMetadataEntity\".\"name\" AS \"FieldMetadataEntity_name\", \"FieldMetadataEntity\".\"label\" AS \"FieldMetadataEntity_label\", \"FieldMetadataEntity\".\"defaultValue\" AS \"FieldMetadataEntity_defaultValue\", \"FieldMetadataEntity\".\"description\" AS \"FieldMetadataEntity_description\", \"FieldMetadataEntity\".\"icon\" AS \"FieldMetadataEntity_icon\", \"FieldMetadataEntity\".\"standardOverrides\" AS \"FieldMetadataEntity_standardOverrides\", \"FieldMetadataEntity\".\"options\" AS \"FieldMetadataEntity_options\", \"FieldMetadataEntity\".\"settings\" AS \"FieldMetadataEntity_settings\", \"FieldMetadataEntity\".\"isCustom\" AS \"FieldMetadataEntity_isCustom\", \"FieldMetadataEntity\".\"isActive\" AS \"FieldMetadataEntity_isActive\", \"FieldMetadataEntity\".\"isSystem\" AS \"FieldMetadataEntity_isSystem\", \"FieldMetadataEntity\".\"isUIReadOnly\" AS \"FieldMetadataEntity_isUIReadOnly\", \"FieldMetadataEntity\".\"isNullable\" AS \"FieldMetadataEntity_isNullable\", \"FieldMetadataEntity\".\"isUnique\" AS \"FieldMetadataEntity_isUnique\", \"FieldMetadataEntity\".\"isLabelSyncedWithName\" AS \"FieldMetadataEntity_isLabelSyncedWithName\", \"FieldMetadataEntity\".\"relationTargetFieldMetadataId\" AS \"FieldMetadataEntity_relationTargetFieldMetadataId\", \"FieldMetadataEntity\".\"relationTargetObjectMetadataId\" AS \"FieldMetadataEntity_relationTargetObjectMetadataId\", \"FieldMetadataEntity\".\"morphId\" AS \"FieldMetadataEntity_morphId\", \"FieldMetadataEntity\".\"createdAt\" AS \"FieldMetadataEntity_createdAt\", \"FieldMetadataEntity\".\"updatedAt\" AS \"FieldMetadataEntity_updatedAt\" FROM \"core\".\"fieldMetadata\" \"FieldMetadataEntity\" WHERE ((\"FieldMetadataEntity\".\"workspaceId\" = $1))", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "SELECT \"FieldMetadataEntity\".\"workspaceId\" AS \"FieldMetadataEntity_workspaceId\", \"FieldMetadataEntity\".\"universalIdentifier\" AS \"FieldMetadataEntity_universalIdentifier\", \"FieldMetadataEntity\".\"applicationId\" AS \"FieldMetadataEntity_applicationId\", \"FieldMetadataEntity\".\"id\" AS \"FieldMetadataEntity_id\", \"FieldMetadataEntity\".\"objectMetadataId\" AS \"FieldMetadataEntity_objectMetadataId\", \"FieldMetadataEntity\".\"type\" AS \"FieldMetadataEntity_type\", \"FieldMetadataEntity\".\"name\" AS \"FieldMetadataEntity_name\", \"FieldMetadataEntity\".\"label\" AS \"FieldMetadataEntity_label\", \"FieldMetadataEntity\".\"defaultValue\" AS \"FieldMetadataEntity_defaultValue\", \"FieldMetadataEntity\".\"description\" AS \"FieldMetadataEntity_description\", \"FieldMetadataEntity\".\"icon\" AS \"FieldMetadataEntity_icon\", \"FieldMetadataEntity\".\"standardOverrides\" AS \"FieldMetadataEntity_standardOverrides\", \"FieldMetadataEntity\".\"options\" AS \"FieldMetadataEntity_options\", \"FieldMetadataEntity\".\"settings\" AS \"FieldMetadataEntity_settings\", \"FieldMetadataEntity\".\"isCustom\" AS \"FieldMetadataEntity_isCustom\", \"FieldMetadataEntity\".\"isActive\" AS \"FieldMetadataEntity_isActive\", \"FieldMetadataEntity\".\"isSystem\" AS \"FieldMetadataEntity_isSystem\", \"FieldMetadataEntity\".\"isUIReadOnly\" AS \"FieldMetadataEntity_isUIReadOnly\", \"FieldMetadataEntity\".\"isNullable\" AS \"FieldMetadataEntity_isNullable\", \"FieldMetadataEntity\".\"isUnique\" AS \"FieldMetadataEntity_isUnique\", \"FieldMetadataEntity\".\"isLabelSyncedWithName\" AS \"FieldMetadataEntity_isLabelSyncedWithName\", \"FieldMetadataEntity\".\"relationTargetFieldMetadataId\" AS \"FieldMetadataEntity_relationTargetFieldMetadataId\", \"FieldMetadataEntity\".\"relationTargetObjectMetadataId\" AS \"FieldMetadataEntity_relationTargetObjectMetadataId\", \"FieldMetadataEntity\".\"morphId\" AS \"FieldMetadataEntity_morphId\", \"FieldMetadataEntity\".\"createdAt\" AS \"FieldMetadataEntity_createdAt\", \"FieldMetadataEntity\".\"updatedAt\" AS \"FieldMetadataEntity_updatedAt\" FROM \"core\".\"fieldMetadata\" \"FieldMetadataEntity\" WHERE ((\"FieldMetadataEntity\".\"workspaceId\" = $1))", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM fieldMetadata FieldMetadataEntity WHERE (workspaceId = %s)", + "domain": ",fieldmetadata,", + "group": "0407b527054b5727", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "1475c849605d6e69" + }, + { + "timestamp": 1772780995.416009, + "start_timestamp": 1772780995.414, + "exclusive_time": 2.009, + "op": "db", + "span_id": "0369de10e93a5eb0", + "parent_span_id": "d2d5c5b8e2723fb0", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT workspaceMember.position AS workspaceMember_position, workspaceMember.nameFirstName AS workspaceMember_nameFirstName,\n workspaceMember.nameLastName AS workspaceMember_nameLastName, workspaceMember.colorScheme AS workspaceMember_colorScheme,\n workspaceMember.locale AS workspaceMember_locale, workspaceMember.avatarUrl AS workspaceMember_avatarUrl,\n workspaceMember.userEmail AS workspaceMember_userEmail,\n workspaceMember.calendarStartDay AS workspaceMember_calendarStartDay, workspaceMember.userId AS workspaceMember_userId,\n workspaceMember.timeZone AS workspaceMember_timeZone, workspaceMember.dateFormat AS workspaceMember_dateFormat,\n workspaceMember.timeFormat AS workspaceMember_timeFormat, workspaceMember.searchVector AS workspaceMember_searchVector,\n workspaceMember.numberFormat AS workspaceMember_numberFormat, workspaceMember.id AS workspaceMember_id,\n workspaceMember.createdAt AS workspaceMember_createdAt, workspaceMember.updatedAt AS workspaceMember_updatedAt,\n workspaceMember.deletedAt AS workspaceMember_deletedAt\nFROM workspace_eydsfkoxf0ujyu7egtyd9t52s.workspaceMember workspaceMember", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "SELECT \"workspaceMember\".\"position\" AS \"workspaceMember_position\", \"workspaceMember\".\"nameFirstName\" AS \"workspaceMember_nameFirstName\", \"workspaceMember\".\"nameLastName\" AS \"workspaceMember_nameLastName\", \"workspaceMember\".\"colorScheme\" AS \"workspaceMember_colorScheme\", \"workspaceMember\".\"locale\" AS \"workspaceMember_locale\", \"workspaceMember\".\"avatarUrl\" AS \"workspaceMember_avatarUrl\", \"workspaceMember\".\"userEmail\" AS \"workspaceMember_userEmail\", \"workspaceMember\".\"calendarStartDay\" AS \"workspaceMember_calendarStartDay\", \"workspaceMember\".\"userId\" AS \"workspaceMember_userId\", \"workspaceMember\".\"timeZone\" AS \"workspaceMember_timeZone\", \"workspaceMember\".\"dateFormat\" AS \"workspaceMember_dateFormat\", \"workspaceMember\".\"timeFormat\" AS \"workspaceMember_timeFormat\", \"workspaceMember\".\"searchVector\" AS \"workspaceMember_searchVector\", \"workspaceMember\".\"numberFormat\" AS \"workspaceMember_numberFormat\", \"workspaceMember\".\"id\" AS \"workspaceMember_id\", \"workspaceMember\".\"createdAt\" AS \"workspaceMember_createdAt\", \"workspaceMember\".\"updatedAt\" AS \"workspaceMember_updatedAt\", \"workspaceMember\".\"deletedAt\" AS \"workspaceMember_deletedAt\" FROM \"workspace_eydsfkoxf0ujyu7egtyd9t52s\".\"workspaceMember\" \"workspaceMember\"", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM workspaceMember workspaceMember", + "domain": ",workspacemember,", + "group": "6e53a05ae3d48cf7", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "9cefb5ac4d7c32d5" + }, + { + "timestamp": 1772780995.419062, + "start_timestamp": 1772780995.419, + "exclusive_time": 0.062, + "op": "request_handler.express", + "span_id": "730eb1f724087e6d", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "/metadata", + "origin": "auto.http.otel.express", + "data": { + "express.name": "/metadata", + "express.type": "request_handler", + "http.route": "/metadata", + "sentry.op": "request_handler.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "op": "request_handler.express", + "status": "ok", + "trace.status": "ok", + "name": "request_handler.express" + }, + "hash": "f0fa4b47d47d39bf" + }, + { + "timestamp": 1772780997.374417, + "start_timestamp": 1772780995.419, + "exclusive_time": 337.385, + "op": "middleware.express", + "span_id": "20063ba65858b7a3", + "parent_span_id": "2609bee568aad1a2", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "", + "origin": "auto.http.otel.express", + "data": { + "express.name": "", + "express.type": "middleware", + "http.route": "/metadata", + "sentry.op": "middleware.express", + "sentry.origin": "auto.http.otel.express" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "category": "middleware", + "op": "middleware.express", + "status": "ok", + "trace.status": "ok", + "name": "middleware.express" + }, + "hash": "1985576209a18698" + }, + { + "timestamp": 1772780997.142032, + "start_timestamp": 1772780995.524, + "exclusive_time": 1618.032, + "op": "db", + "span_id": "c4f068e74d81a2cc", + "parent_span_id": "20063ba65858b7a3", + "trace_id": "278dd0196f2d43fbb9f469e2ecf16a1f", + "status": "ok", + "description": "SELECT \"ViewEntity\".\"workspaceId\" AS \"ViewEntity_workspaceId\", \"ViewEntity\".\"universalIdentifier\" AS \"ViewEntity_universalIdentifier\", \"ViewEntity\".\"applicationId\" AS \"ViewEntity_applicationId\", \"ViewEntity\".\"id\" AS \"ViewEntity_id\", \"ViewEntity\".\"name\" AS \"ViewEntity_name\", \"ViewEntity\".\"objectMetadataId\" AS \"ViewEntity_objectMetadataId\", \"ViewEntity\".\"type\" AS \"ViewEntity_type\", \"ViewEntity\".\"key\" AS \"ViewEntity_key\", \"ViewEntity\".\"icon\" AS \"ViewEntity_icon\", \"ViewEntity\".\"position\" AS \"ViewEntity_position\", \"ViewEntity\".\"isCompact\" AS \"ViewEntity_isCompact\", \"ViewEntity\".\"isCustom\" AS \"ViewEntity_isCustom\", \"ViewEntity\".\"openRecordIn\" AS \"ViewEntity_openRecordIn\", \"ViewEntity\".\"kanbanAggregateOperation\" AS \"ViewEntity_kanbanAggregateOperation\", \"ViewEntity\".\"kanbanAggregateOperationFieldMetadataId\" AS \"ViewEntity_kanbanAggregateOperationFieldMetadataId\", \"ViewEntity\".\"calendarLayout\" AS \"ViewEntity_calendarLayout\", \"ViewEntity\".\"calendarFieldMetadataId\" AS \"ViewEntity_calendarFieldMetadataId\", \"ViewEntity\".\"mainGroupByFieldMetadataId\" AS \"ViewEntity_mainGroupByFieldMetadataId\", \"ViewEntity\".\"shouldHideEmptyGroups\" AS \"ViewEntity_shouldHideEmptyGroups\", \"ViewEntity\".\"createdAt\" AS \"ViewEntity_createdAt\", \"ViewEntity\".\"updatedAt\" AS \"ViewEntity_updatedAt\", \"ViewEntity\".\"deletedAt\" AS \"ViewEntity_deletedAt\", \"ViewEntity\".\"anyFieldFilterValue\" AS \"ViewEntity_anyFieldFilterValue\", \"ViewEntity\".\"visibility\" AS \"ViewEntity_visibility\", \"ViewEntity\".\"createdByUserWorkspaceId\" AS \"ViewEntity_createdByUserWorkspaceId\", \"ViewEntity__ViewEntity_workspace\".\"id\" AS \"ViewEntity__ViewEntity_workspace_id\", \"ViewEntity__ViewEntity_workspace\".\"displayName\" AS \"ViewEntity__ViewEntity_workspace_displayName\", \"ViewEntity__ViewEntity_workspace\".\"logo\" AS \"ViewEntity__ViewEntity_workspace_logo\", \"ViewEntity__ViewEntity_workspace\".\"logoFileId\" AS \"ViewEntity__ViewEntity_workspace_logoFileId\", \"ViewEntity__ViewEntity_workspace\".\"inviteHash\" AS \"ViewEntity__ViewEntity_workspace_inviteHash\", \"ViewEntity__ViewEntity_workspace\".\"deletedAt\" AS \"ViewEntity__ViewEntity_workspace_deletedAt\", \"ViewEntity__ViewEntity_workspace\".\"createdAt\" AS \"ViewEntity__ViewEntity_workspace_createdAt\", \"ViewEntity__ViewEntity_workspace\".\"updatedAt\" AS \"ViewEntity__ViewEntity_workspace_updatedAt\", \"ViewEntity__ViewEntity_workspace\".\"allowImpersonation\" AS \"ViewEntity__ViewEntity_workspace_allowImpersonation\", \"ViewEntity__ViewEntity_workspace\".\"isPublicInviteLinkEnabled\" AS \"ViewEntity__ViewEntity_workspace_isPublicInviteLinkEnabled\", \"ViewEntity__ViewEntity_workspace\".\"trashRetentionDays\" AS \"ViewEntity__ViewEntity_workspace_trashRetentionDays\", \"ViewEntity__ViewEntity_workspace\".\"eventLogRetentionDays\" AS \"ViewEntity__ViewEntity_workspace_eventLogRetentionDays\", \"ViewEntity__ViewEntity_workspace\".\"activationStatus\" AS \"ViewEntity__ViewEntity_workspace_activationStatus\", \"ViewEntity__ViewEntity_workspace\".\"suspendedAt\" AS \"ViewEntity__ViewEntity_workspace_suspendedAt\", \"ViewEntity__ViewEntity_workspace\".\"metadataVersion\" AS \"ViewEntity__ViewEntity_workspace_metadataVersion\", \"ViewEntity__ViewEntity_workspace\".\"databaseUrl\" AS \"ViewEntity__ViewEntity_workspace_databaseUrl\", \"ViewEntity__ViewEntity_workspace\".\"databaseSchema\" AS \"ViewEntity__ViewEntity_workspace_databaseSchema\", \"ViewEntity__ViewEntity_workspace\".\"subdomain\" AS \"ViewEntity__ViewEntity_workspace_subdomain\", \"ViewEntity__ViewEntity_workspace\".\"customDomain\" AS \"ViewEntity__ViewEntity_workspace_customDomain\", \"ViewEntity__ViewEntity_workspace\".\"isGoogleAuthEnabled\" AS \"ViewEntity__ViewEntity_workspace_isGoogleAuthEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isGoogleAuthBypassEnabled\" AS \"ViewEntity__ViewEntity_workspace_isGoogleAuthBypassEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isTwoFactorAuthenticationEnforced\" AS \"3b3d2a3d99a19589245c206bd1099f4ec830ca4b\", \"ViewEntity__ViewEntity_workspace\".\"isPasswordAuthEnabled\" AS \"ViewEntity__ViewEntity_workspace_isPasswordAuthEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isPasswordAuthBypassEnabled\" AS \"ViewEntity__ViewEntity_workspace_isPasswordAuthBypassEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isMicrosoftAuthEnabled\" AS \"ViewEntity__ViewEntity_workspace_isMicrosoftAuthEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isMicrosoftAuthBypassEnabled\" AS \"ViewEntity__ViewEntity_workspace_isMicrosoftAuthBypassEnabled\", \"ViewEntity__ViewEntity_workspace\".\"isCustomDomainEnabled\" AS \"ViewEntity__ViewEntity_workspace_isCustomDomainEnabled\", \"ViewEntity__ViewEntity_workspace\".\"editableProfileFields\" AS \"ViewEntity__ViewEntity_workspace_editableProfileFields\", \"ViewEntity__ViewEntity_workspace\".\"defaultRoleId\" AS \"ViewEntity__ViewEntity_workspace_defaultRoleId\", \"ViewEntity__ViewEntity_workspace\".\"version\" AS \"ViewEntity__ViewEntity_workspace_version\", \"ViewEntity__ViewEntity_workspace\".\"fastModel\" AS \"ViewEntity__ViewEntity_workspace_fastModel\", \"ViewEntity__ViewEntity_workspace\".\"smartModel\" AS \"ViewEntity__ViewEntity_workspace_smartModel\", \"ViewEntity__ViewEntity_workspace\".\"aiAdditionalInstructions\" AS \"ViewEntity__ViewEntity_workspace_aiAdditionalInstructions\", \"ViewEntity__ViewEntity_workspace\".\"workspaceCustomApplicationId\" AS \"ViewEntity__ViewEntity_workspace_workspaceCustomApplicationId\", \"ViewEntity__ViewEntity_workspace\".\"routerModel\" AS \"ViewEntity__ViewEntity_workspace_routerModel\", \"ViewEntity__ViewEntity_viewFields\".\"workspaceId\" AS \"ViewEntity__ViewEntity_viewFields_workspaceId\", \"ViewEntity__ViewEntity_viewFields\".\"universalIdentifier\" AS \"ViewEntity__ViewEntity_viewFields_universalIdentifier\", \"ViewEntity__ViewEntity_viewFields\".\"applicationId\" AS \"ViewEntity__ViewEntity_viewFields_applicationId\", \"ViewEntity__ViewEntity_viewFields\".\"id\" AS \"ViewEntity__ViewEntity_viewFields_id\", \"ViewEntity__ViewEntity_viewFields\".\"fieldMetadataId\" AS \"ViewEntity__ViewEntity_viewFields_fieldMetadataId\", \"ViewEntity__ViewEntity_viewFields\".\"isVisible\" AS \"ViewEntity__ViewEntity_viewFields_isVisible\", \"ViewEntity__ViewEntity_viewFields\".\"size\" AS \"ViewEntity__ViewEntity_viewFields_size\", \"ViewEntity__ViewEntity_viewFields\".\"position\" AS \"ViewEntity__ViewEntity_viewFields_position\", \"ViewEntity__ViewEntity_viewFields\".\"aggregateOperation\" AS \"ViewEntity__ViewEntity_viewFields_aggregateOperation\", \"ViewEntity__ViewEntity_viewFields\".\"viewId\" AS \"ViewEntity__ViewEntity_viewFields_viewId\", \"ViewEntity__ViewEntity_viewFields\".\"viewFieldGroupId\" AS \"ViewEntity__ViewEntity_viewFields_viewFieldGroupId\", \"ViewEntity__ViewEntity_viewFields\".\"createdAt\" AS \"ViewEntity__ViewEntity_viewFields_createdAt\", \"ViewEntity__ViewEntity_viewFields\".\"updatedAt\" AS \"ViewEntity__ViewEntity_viewFields_updatedAt\", \"ViewEntity__ViewEntity_viewFields\".\"deletedAt\" AS \"ViewEntity__ViewEntity_viewFields_deletedAt\", \"ViewEntity__ViewEntity_viewFilters\".\"workspaceId\" AS \"ViewEntity__ViewEntity_viewFilters_workspaceId\", \"ViewEntity__ViewEntity_viewFilters\".\"universalIdentifier\" AS \"ViewEntity__ViewEntity_viewFilters_universalIdentifier\", \"ViewEntity__ViewEntity_viewFilters\".\"applicationId\" AS \"ViewEntity__ViewEntity_viewFilters_applicationId\", \"ViewEntity__ViewEntity_viewFilters\".\"id\" AS \"ViewEntity__ViewEntity_viewFilters_id\", \"ViewEntity__ViewEntity_viewFilters\".\"fieldMetadataId\" AS \"ViewEntity__ViewEntity_viewFilters_fieldMetadataId\", \"ViewEntity__ViewEntity_viewFilters\".\"operand\" AS \"ViewEntity__ViewEntity_viewFilters_operand\", \"ViewEntity__ViewEntity_viewFilters\".\"value\" AS \"ViewEntity__ViewEntity_viewFilters_value\", \"ViewEntity__ViewEntity_viewFilters\".\"viewFilterGroupId\" AS \"ViewEntity__ViewEntity_viewFilters_viewFilterGroupId\", \"ViewEntity__ViewEntity_viewFilters\".\"positionInViewFilterGroup\" AS \"ViewEntity__ViewEntity_viewFilters_positionInViewFilterGroup\", \"ViewEntity__ViewEntity_viewFilters\".\"subFieldName\" AS \"ViewEntity__ViewEntity_viewFilters_subFieldName\", \"ViewEntity__ViewEntity_viewFilters\".\"viewId\" AS \"ViewEntity__ViewEntity_viewFilters_viewId\", \"ViewEntity__ViewEntity_viewFilters\".\"createdAt\" AS \"ViewEntity__ViewEntity_viewFilters_createdAt\", \"ViewEntity__ViewEntity_viewFilters\".\"updatedAt\" AS \"ViewEntity__ViewEntity_viewFilters_updatedAt\", \"ViewEntity__ViewEntity_viewFilters\".\"deletedAt\" AS \"ViewEntity__ViewEntity_viewFilters_deletedAt\", \"ViewEntity__ViewEntity_viewSorts\".\"workspaceId\" AS \"ViewEntity__ViewEntity_viewSorts_workspaceId\", \"ViewEntity__ViewEntity_viewSorts\".\"universalIdentifier\" AS \"ViewEntity__ViewEntity_viewSorts_universalIdentifier\", \"ViewEntity__ViewEntity_viewSorts\".\"applicationId\" AS \"ViewEntity__ViewEntity_viewSorts_applicationId\", \"ViewEntity__ViewEntity_viewSorts\".\"id\" AS \"ViewEntity__ViewEntity_viewSorts_id\", \"ViewEntity__ViewEntity_viewSorts\".\"fieldMetadataId\" AS \"ViewEntity__ViewEntity_viewSorts_fieldMetadataId\", \"ViewEntity__ViewEntity_viewSorts\".\"direction\" AS \"ViewEntity__ViewEntity_viewSorts_direction\", \"ViewEntity__ViewEntity_viewSorts\".\"viewId\" AS \"ViewEntity__ViewEntity_viewSorts_viewId\", \"ViewEntity__ViewEntity_viewSorts\".\"createdAt\" AS \"ViewEntity__ViewEntity_viewSorts_createdAt\", \"ViewEntity__ViewEntity_viewSorts\".\"updatedAt\" AS \"ViewEntity__ViewEntity_viewSorts_updatedAt\", \"ViewEntity__ViewEntity_viewSorts\".\"deletedAt\" AS \"ViewEntity__ViewEntity_viewSorts_deletedAt\", \"ViewEntity__ViewEntity_viewGroups\".\"workspaceId\" AS \"ViewEntity__ViewEntity_viewGroups_workspaceId\", \"ViewEntity__ViewEntity_viewGroups\".\"universalIdentifier\" AS \"ViewEntity__ViewEntity_viewGroups_universalIdentifier\", \"ViewEntity__ViewEntity_viewGroups\".\"applicationId\" AS \"ViewEntity__ViewEntity_viewGroups_applicationId\", \"ViewEntity__ViewEntity_viewGroups\".\"id\" AS \"ViewEntity__ViewEntity_viewGroups_id\", \"ViewEntity__ViewEntity_viewGroups\".\"isVisible\" AS \"ViewEntity__ViewEntity_viewGroups_isVisible\", \"ViewEntity__ViewEntity_viewGroups\".\"fieldValue\" AS \"ViewEntity__ViewEntity_viewGroups_fieldValue\", \"ViewEntity__ViewEntity_viewGroups\".\"position\" AS \"ViewEntity__ViewEntity_viewGroups_position\", \"ViewEntity__ViewEntity_viewGroups\".\"viewId\" AS \"ViewEntity__ViewEntity_viewGroups_viewId\", \"ViewEntity__ViewEntity_viewGroups\".\"createdAt\" AS \"ViewEntity__ViewEntity_viewGroups_createdAt\", \"ViewEntity__ViewEntity_viewGroups\".\"updatedAt\" AS \"ViewEntity__ViewEntity_viewGroups_updatedAt\", \"ViewEntity__ViewEntity_viewGroups\".\"deletedAt\" AS \"ViewEntity__ViewEntity_viewGroups_deletedAt\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"workspaceId\" AS \"ViewEntity__ViewEntity_viewFilterGroups_workspaceId\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"universalIdentifier\" AS \"ViewEntity__ViewEntity_viewFilterGroups_universalIdentifier\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"applicationId\" AS \"ViewEntity__ViewEntity_viewFilterGroups_applicationId\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"id\" AS \"ViewEntity__ViewEntity_viewFilterGroups_id\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"parentViewFilterGroupId\" AS \"ViewEntity__ViewEntity_viewFilterGroups_parentViewFilterGroupId\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"logicalOperator\" AS \"ViewEntity__ViewEntity_viewFilterGroups_logicalOperator\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"positionInViewFilterGroup\" AS \"4365612b676f6db881d4f84639c5159380e32460\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"viewId\" AS \"ViewEntity__ViewEntity_viewFilterGroups_viewId\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"createdAt\" AS \"ViewEntity__ViewEntity_viewFilterGroups_createdAt\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"updatedAt\" AS \"ViewEntity__ViewEntity_viewFilterGroups_updatedAt\", \"ViewEntity__ViewEntity_viewFilterGroups\".\"deletedAt\" AS \"ViewEntity__ViewEntity_viewFilterGroups_deletedAt\" FROM \"core\".\"view\" \"ViewEntity\" LEFT JOIN \"core\".\"workspace\" \"ViewEntity__ViewEntity_workspace\" ON \"ViewEntity__ViewEntity_workspace\".\"id\"=\"ViewEntity\".\"workspaceId\" AND (\"ViewEntity__ViewEntity_workspace\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"viewField\" \"ViewEntity__ViewEntity_viewFields\" ON \"ViewEntity__ViewEntity_viewFields\".\"viewId\"=\"ViewEntity\".\"id\" AND (\"ViewEntity__ViewEntity_viewFields\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"viewFilter\" \"ViewEntity__ViewEntity_viewFilters\" ON \"ViewEntity__ViewEntity_viewFilters\".\"viewId\"=\"ViewEntity\".\"id\" AND (\"ViewEntity__ViewEntity_viewFilters\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"viewSort\" \"ViewEntity__ViewEntity_viewSorts\" ON \"ViewEntity__ViewEntity_viewSorts\".\"viewId\"=\"ViewEntity\".\"id\" AND (\"ViewEntity__ViewEntity_viewSorts\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"viewGroup\" \"ViewEntity__ViewEntity_viewGroups\" ON \"ViewEntity__ViewEntity_viewGroups\".\"viewId\"=\"ViewEntity\".\"id\" AND (\"ViewEntity__ViewEntity_viewGroups\".\"deletedAt\" IS NULL) LEFT JOIN \"core\".\"viewFilterGroup\" \"ViewEntity__ViewEntity_viewFilterGroups\" ON \"ViewEntity__ViewEntity_viewFilterGroups\".\"viewId\"=\"ViewEntity\".\"id\" AND (\"ViewEntity__ViewEntity_viewFilterGroups\".\"deletedAt\" IS NULL) WHERE ( ((\"ViewEntity\".\"workspaceId\" = $1) AND (\"ViewEntity\".\"deletedAt\" IS NULL)) ) AND ( \"ViewEntity\".\"deletedAt\" IS NULL ) ORDER BY \"ViewEntity\".\"position\" ASC", + "origin": "auto.db.otel.postgres", + "data": { + "db.system": "postgresql", + "db.connection_string": "postgresql://rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com:5432/default", + "db.name": "default", + "db.statement": "[Filtered]", + "db.user": "postgres", + "net.peer.name": "rds-prod-eu.cluster-cr4iu4oi4q7b.eu-central-1.rds.amazonaws.com", + "net.peer.port": 5432, + "otel.kind": "CLIENT", + "sentry.op": "db", + "sentry.origin": "auto.db.otel.postgres" + }, + "sentry_tags": { + "release": "v1.18.1", + "user": "ip:::ffff:10.101.147.176", + "user.ip": "::ffff:10.101.147.176", + "environment": "prod", + "transaction": "POST /metadata", + "transaction.method": "POST", + "transaction.op": "http.server", + "browser.name": "Microsoft Edge", + "sdk.name": "sentry.javascript.node", + "sdk.version": "10.27.0", + "platform": "node", + "os.name": "Alpine Linux", + "action": "SELECT", + "category": "db", + "description": "SELECT .. FROM view ViewEntity LEFT JOIN workspace ViewEntity__ViewEntity_workspace ON id = workspaceId AND (deletedAt IS NULL) LEFT JOIN viewField ViewEntity__ViewEntity_viewFields ON viewId = id AN*", + "domain": ",view,viewfield,viewfilter,viewfiltergroup,viewgroup,viewsort,workspace,", + "group": "5a307ac013a87215", + "op": "db", + "status": "ok", + "system": "postgresql", + "trace.status": "ok", + "name": "Database operation" + }, + "hash": "ea6a25f38702e471" + } +] \ No newline at end of file diff --git a/packages/twenty-server/src/engine/metadata-modules/view/services/view.service.ts b/packages/twenty-server/src/engine/metadata-modules/view/services/view.service.ts index 18453d0b7f3..3dacf328337 100644 --- a/packages/twenty-server/src/engine/metadata-modules/view/services/view.service.ts +++ b/packages/twenty-server/src/engine/metadata-modules/view/services/view.service.ts @@ -385,13 +385,13 @@ export class ViewService { }, order: { position: 'ASC' }, relations: [ - 'workspace', 'viewFields', 'viewFilters', 'viewSorts', 'viewGroups', 'viewFilterGroups', ], + relationLoadStrategy: 'query', }); return views.filter((view) => {