Term Cleanup: When initially starting the term consolidation process, can take a while to reload the page

Open
#907 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php

Research direction

Reproduce the delay by clicking Find similar tags with a taxonomy containing many terms, then trace the action that handles the initial term consolidation request. Determine which work blocks the page reload; done means the initial page refresh is prompt while the consolidation continues as intended, with coverage for the large-taxonomy case.

Written by the indexing model from the issue text.

Description

Describe the bug

Originally reported by @dkotter:

This may not be a big deal but I noticed that if I have a taxonomy with lots of terms (in my case, was testing with ~8000 tags), when I initially click the Find similar tags button, it reloads the page but takes quite awhile for that reload to work. I had assumed that clicking that button would trigger the process to start in the background, which means it wouldn't take any extra time to load. I'm guessing what's happening is it's starting the process and running the first iteration at the same time, thus resulting in the page taking a bit to load.

That assumption may be wrong but would be nice to figure out why that first load is so long and see if we can make that a normal page load.

Steps to Reproduce

Originally reported by @dkotter:

Start the term consolidation process with a taxonomy that has lots of terms. Note that it takes quite a few seconds for the page to refresh.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

Originally reported in https://github.com/10up/classifai-cleanup/issues/4.

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
PHP
Stars
714
Forks
68
Avg merge
4h 32m
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/classifai

All issues in 10up/classifai

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.