COALESCE query in workspaces very slow

Created on 26 February 2025, about 2 months ago

Problem/Motivation

Under heavy traffic, the coalesce query in \Drupal\workspaces\EntityQuery is very slow.

For normal admin operations this is fine, but for other usages of Workspaces for anonymous traffic it exacerbates the issue and floods the database:

Steps to reproduce

1. Use a module like https://www.drupal.org/project/wse β†’ that can activate a workspace for anonymous users on a cookie
2. Throw a lot of Workspace traffic at the site

Proposed resolution

Optimize the query.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.1 πŸ”₯

Component

workspaces.module

Created by

πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024