Skip to content

[Payment due March 7] [Performance] Remove cache from the getOrderedReportIDs method #36799

Closed

Description

@mountiny

Coming from Slack

Problem

Whenever we want to calculate order of reports in the LHN, the getOrderedReportIDs function is called. Based on our investigations for different metrics (Report load time and Send a message), we can tell that the getOrderedReportIDs is a main bottleneck responsible for app's degrading performance.

Details can be found in the Cache part of this analysis

### Solution
In order to fix the underlying issue, we have splitted the implementation into a few atomic PRs that could be easily digested. One of them is presented below.

Followed the analysis, the overhead that stems from cache lookup when generating ordered reports does not match its possible positive outcomes on overall time execution. Analysis, as well as, measurements with possible gains of removing the cache are presented in linked issues.

Activity

  1. self-assigned this
    on Feb 19, 2024
  2. kacper-mikolajczak commented on Feb 19, 2024

    @kacper-mikolajczak
    Contributor
  3. melvin-bot commented on Feb 26, 2024

    @melvin-bot

    @mountiny, @kacper-mikolajczak Whoops! This issue is 2 days overdue. Let's get this updated quick!

  4. mountiny commented on Feb 26, 2024

    @mountiny
    ContributorAuthor

    Merged

  5. melvin-bot commented on Mar 5, 2024

    @melvin-bot

    @mountiny, @kacper-mikolajczak Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  6. melvin-bot commented on Mar 5, 2024

    @melvin-bot

    @mountiny, @kacper-mikolajczak Whoops! This issue is 2 days overdue. Let's get this updated quick!

  7. jjcoffee commented on Mar 7, 2024

    @jjcoffee
    Contributor

    I am due payment for the PR review on this. Deployed to production last week so should be due payment today, I think. 🙇

  8. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Mar 7, 2024
  9. melvin-bot commented on Mar 7, 2024

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  10. changed the title [-][Performance] Remove cache from the getOrderedReportIDs method[/-] [+][Payment due March 7] [Performance] Remove cache from the getOrderedReportIDs method[/+] on Mar 8, 2024
  11. Christinadobrzyn commented on Mar 8, 2024

    @Christinadobrzyn
    Contributor

    Payouts due:

    Contributor+: $500 @jjcoffee (in Upwork - offer sent - https://www.upwork.com/nx/wm/offer/101274490

    Upwork job is here.

    sent you an offer @jjcoffee!

  12. jjcoffee commented on Mar 8, 2024

    @jjcoffee
    Contributor

    @Christinadobrzyn Accepted, thanks! 🙇

  13. Christinadobrzyn commented on Mar 8, 2024

    @Christinadobrzyn
    Contributor

    Awesome! Paid to you @jjcoffee based on this payment summary #36799 (comment)

    Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ReviewingHas a PR in reviewTask

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions