Integration with term merge - merging on huge vocabulary breaks site

Created on 26 April 2024, 2 months ago
Updated 10 May 2024, about 2 months ago

Problem/Motivation

When we have a vocabulary with many terms (20000) it is impossible to merge terms.
It happens due to internal term merge implementation that loads all terms before the merge and a user can select from all terms list extra terms to merge. However, the taxonomy manager has a tree, and related terms to merge are already selected.
Term merge is working on Use checkbox and radio instead of Select, Provide better user experience ✨ Use checkbox and radio instead of Select, Provide better user experience Needs review and Offer an autocomplete version ✨ Offer an autocomplete version Needs review
but taxonomy_term merge can already show only selected terms and hardcode all terms limit.

Steps to reproduce

  1. Patch term merge using https://www.drupal.org/node/3160872 β†’
  2. Have a vocabulary with ~20000 terms.
  3. PHP memory limit 256M.
  4. Visit vocabulary using taxonomy manager and perform terms merge.

Proposed resolution

Limit the number of terms to merge to 1000 and when we have more terms show only selected terms to merge.

User interface changes

To show on merge terms 1000 terms or only selected terms.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Andriy Khomych

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024