View Issue Details

IDProjectCategoryView StatusLast Update
0026167mantisbtperformancepublic2019-12-09 04:31
Reportercproensa Assigned Tocproensa  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.23.0 
Target Version2.23.0Fixed in Version2.23.0 
Summary0026167: Issue view history api repeated calls to bug_get_attachments database query
Description

After the change to rest api issue view, i have detected that the query for bug_get_attachments() is repeated for each history row.

TagsNo tags attached.
Attached Files
imagen.png (135,983 bytes)   
imagen.png (135,983 bytes)   

Related Changesets

MantisBT: master 1436e536

2019-09-21 16:21

cproensa

Committer: dregad


Details Diff
Clean up duplicated query call

Move the call to `file_get_visible_attachments()` outside of the loop,
to avoid duplicated database queries.

Fixes: 0026167
Affected Issues
0026167
mod - api/soap/mc_issue_api.php Diff File