Content
View differences
Updated by Jens Ulferts 7 months ago
### Steps to reproduce
1. Define ideally multiple custom fields of various types on 'Spent time'/time entries
2. Have a list of time entries
3. Fetch the time entries calling /api/v3/time\_entries
4. Look at the SQL statements issued
### What is the buggy behavior?
* n+1 queries for
* ~~The The custom values~~ (fixed in the first PR) values
* ~~The The custom fields~~ (fixed in the first PR) fields
* The non scalar values (e.g. users)
### What is the expected behavior?
No n+1 queries -> improved performance
1. Define ideally multiple custom fields of various types on 'Spent time'/time entries
2. Have a list of time entries
3. Fetch the time entries calling /api/v3/time\_entries
4. Look at the SQL statements issued
### What is the buggy behavior?
* n+1 queries for
* ~~The
* ~~The
* The non scalar values (e.g. users)
### What is the expected behavior?
No n+1 queries -> improved performance