Skip to content

Look into making report display name generation more efficient #11609

Description

@tgolen

Coming from #11226 (comment)

Problem

There is code that generates the display name of a report. This code may be non-performant at scale and turn into a bottle neck.

Solution

Consider some solutions:

  1. memoizing the report name generation
  2. generating the display name on the server
  3. storing the displayName in a map instead of cloning the reports in a map

@marcaaron I'm particularly interested in your thoughts on solution 2. The report name will only change when:

  1. The participants change (I don't think we ever change participants... We either archive the report or create a new report when adding participants
  2. The type of chat report changes (I don't think it's possible to change the type of a chat report)
  3. The chat is archived (valid reason)
  4. The details of the participants change (valid reason)

Because of point 4, maybe that's the best reason to keep the display name generation on the client and to use solution 1 or 3 above?

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringImprovementItem broken or needs improvement.ReviewingHas a PR in review

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions