Re-implement PrevnextService::getNodesOfType - performance issue

Created on 30 June 2021, almost 3 years ago
Updated 12 February 2024, 4 months ago

Problem/Motivation

Each time node is displayed (while having prev/next configured) function PrevnextService::getNodesOfType is called. It does what is stated in comment:

Retrieves all nodes of the same type and language of given.

No limitations at all, it's terrible for websites having many nodes of the same type and language (10k+, 100k+ etc.)

Steps to reproduce

Use it normally.

Proposed resolution

Pass viewed node ID to query. Mathematical functions could be used (ABS) or sub query, limit should be added.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇵🇱Poland pawel_r

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024