Content
View differences
Updated by Ivan Kuchin about 1 year ago
**As** a user
**I want to** not wait for activity to get rendered \[enter objective\]
**so that** I can use it efficiently \[enter desired result\]
**Acceptance criteria**
* There are no separate queries made for each journal detail requiring to load models <br>
**Technical notes**
* Following should currently be the complete list of formatters that are querying more data:
<br>
**Permissions and visibility considerations**
* lib\_static/plugins/acts\_as\_journalized/lib/journal\_formatter/named\_association.rb
* lib/open\_project/journal\_formatter/attachment.rb
* lib/open\_project/journal\_formatter/cause.rb
* lib/open\_project/journal\_formatter/custom\_field.rb
* lib/open\_project/journal\_formatter/file\_link.rb
* lib/open\_project/journal\_formatter/project\_life\_cycle\_step\_active.rb
* lib/open\_project/journal\_formatter/project\_life\_cycle\_step\_dates.rb
* lib/open\_project/journal\_formatter/subproject\_named\_association.rb
* lib/open\_project/journal\_formatter/time\_entry\_named\_association.rb
* modules/meeting/lib/open\_project/journal\_formatter/meeting\_work\_package\_id.rb
* Some formatters can query even more data, like custom\_field when type _To whom is list this feature visible?_
* Currently the only mitigation for N+1 queries _When is in `JournalFormatter::NamedAssociation` which uses `JournalFormatterCache` passed through `cache:` argument, but it is duplicating rails query cache, so probably not making it more any more efficient and still queries models one by one
visible?_
**Translation considerations**
* I think _Key terms and phrases in the way to resolve it is to group all details key languages_
**Out of all journals per formatter class and request every formatter to fetch all needed data scope**
* <br>
**I want to** not wait for activity to get rendered
**so that** I can use it efficiently
**Acceptance criteria**
* There are no separate queries made for each journal detail requiring to load models
**Technical notes**
* Following should currently be the complete list of formatters that are querying more data:
**Permissions and visibility considerations**
* lib/open\_project/journal\_formatter/attachment.rb
* lib/open\_project/journal\_formatter/cause.rb
* lib/open\_project/journal\_formatter/custom\_field.rb
* lib/open\_project/journal\_formatter/file\_link.rb
* lib/open\_project/journal\_formatter/project\_life\_cycle\_step\_active.rb
* lib/open\_project/journal\_formatter/project\_life\_cycle\_step\_dates.rb
* lib/open\_project/journal\_formatter/subproject\_named\_association.rb
* lib/open\_project/journal\_formatter/time\_entry\_named\_association.rb
* modules/meeting/lib/open\_project/journal\_formatter/meeting\_work\_package\_id.rb
* Some formatters can query even more data, like custom\_field when type
* Currently the only mitigation for N+1 queries
**Translation considerations**
**Out
* <br>