# Bug OP-2642 - High loading time for switching work packages with custom fields

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-2642

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 5.0.16 |
| Observed in versions |  |
| Sprint | 5.0.16 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Jens Ulferts |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Preconditions**

  - Work package module activated.
  - Several custom fields exist which are assigned to types used in the project.
      - Custom fields include custom fields of type “List” with many (e.g. 200) entries.

**Steps to reproduce**

1.  Go to work package page.
2.  Open work package in split screen.
3.  Switch between different work packages.
4.  Repeat with all custom fields deactivated.

**Actual behavior**

  - The performance is significantly worse when custom fields are activated (about 60% faster without custom fields (e.g. 2.1 seconds vs. 3.3 seconds).

**Expected behavior**

  - Performance is faster and not noticeably impacted by custom fields.

**Without custom fields**  
![](Performance-Without-CFs.gif)

**With custom fields**  
![](Performance-With-CFs.gif)

**QA system**

  - qa.openproject-edge.com
  - OpenProject 5.0.13
