Content
View differences
Updated by Jan Sandbrink 7 months ago
### Steps to reproduce
1. Be on an OpenProject instance with a large amount of time entries
2. Call `/api/v3/time_entries`
3. Watch the Active Record server logs
### What is the buggy behavior?
An N+1 query on the work\_packages table is happening, slowing down the response.
### What is the expected behavior?
No N+1 query.
### QA notes
I don't think that the fix can be properly tested, just by looking at the behaviour of the API. If you want to test that nothing else got broken, feel free to do so.
Otherwise immediately closing this WP, might also be an option.
1. Be on an OpenProject instance with a large amount of time entries
2. Call `/api/v3/time_entries`
3. Watch the Active Record server logs
### What is the buggy behavior?
An N+1 query on the work\_packages table is happening, slowing down the response.
### What is the expected behavior?
No N+1 query.
### QA notes
I don't think that the fix can be properly tested, just by looking at the behaviour of the API. If you want to test that nothing else got broken, feel free to do so.
Otherwise immediately closing this WP, might also be an option.