mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-07 06:15:36 +00:00
Merge branch 'workspace-query-performance-improvement' into 'develop'
Workspace template IDs query performance improvement See merge request baserow/baserow!3317
This commit is contained in:
commit
8a679d0550
2 changed files with 10 additions and 2 deletions
backend/src/baserow/core
changelog/entries/unreleased/refactor
|
@ -8,7 +8,7 @@ from baserow.core.handler import CoreHandler
|
|||
from baserow.core.integrations.operations import (
|
||||
ListIntegrationsApplicationOperationType,
|
||||
)
|
||||
from baserow.core.models import Workspace, WorkspaceUser
|
||||
from baserow.core.models import Template, Workspace, WorkspaceUser
|
||||
from baserow.core.notifications.operations import (
|
||||
ClearNotificationsOperationType,
|
||||
ListNotificationsOperationType,
|
||||
|
@ -134,7 +134,7 @@ class AllowIfTemplatePermissionManagerType(PermissionManagerType):
|
|||
return {
|
||||
"allowed_operations_on_templates": self.OPERATION_ALLOWED_ON_TEMPLATES,
|
||||
"workspace_template_ids": list(
|
||||
Workspace.objects.exclude(template=None).values_list("id", flat=True)
|
||||
Template.objects.values_list("workspace_id", flat=True)
|
||||
),
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "refactor",
|
||||
"message": "Workspace template IDs query performance improvement.",
|
||||
"domain": "core",
|
||||
"issue_number": null,
|
||||
"bullet_points": [],
|
||||
"created_at": "2025-03-27"
|
||||
}
|
Loading…
Add table
Reference in a new issue