stable

Clone or download

Read-only

request #10112 Repeated sql queries for attachments in an artifact

When we display an artifact that contains attachments, for each attachment Tuleap performs 7× the same query. This commit introduces a cache to avoid useless calls to the database. For example on an artifact with 12 attachments: Before: 164ms 302 calls to mysql_query After: 140ms 232 calls to mysql_query Change-Id: I0b94e3e083164803530930b52b3f1d3ae3ea7ded

Modified Files

Name
M plugins/tracker/include/Tracker/FileInfoFactory.class.php +10 −5 Go to diff View file