summaryrefslogtreecommitdiffstats
path: root/java/com/google/gerrit/server/extensions/events/RevisionCreated.java
diff options
context:
space:
mode:
authorLuca Milanesio <luca.milanesio@gmail.com>2022-04-13 00:03:47 +0100
committerLuca Milanesio <luca.milanesio@gmail.com>2022-04-29 13:05:22 +0000
commit71e4ce3d069507f6186e1112112ed2bfd45fbccd (patch)
tree8efd8e90a923c02bd7ccae50334eeff1bd4851e4 /java/com/google/gerrit/server/extensions/events/RevisionCreated.java
parentb8e9d684c28402d9888573d5ea79a1985c1b3253 (diff)
Set PerThreadCache as readonly when formatting change e-mails
Apply the same optimisation made for Change-Id: I1b71bfcf to the formatting the change e-mails body, which is done synchronously to the incoming REST API and thus impacts the latency perceived by the end user. The composition of the e-mail is using multiple information coming from multiple fields from NoteDb and calls the /meta refs lookups multiple times for the same change. The same considerations of performance improvement and reduction of /meta refs lookup are valid in this use-case. Release-Notes: enable the read-only cache of /meta when producing JSON Change-Id: I993d4ddc37cf27b66ea9d7323963e761564603fa
Diffstat (limited to 'java/com/google/gerrit/server/extensions/events/RevisionCreated.java')
0 files changed, 0 insertions, 0 deletions