Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid database lookups for DescriptionHTML #18924

Merged
merged 4 commits into from
Feb 27, 2022

Commits on Feb 26, 2022

  1. Avoid database lookups for DescriptionHTML

    - Don't Compose meta's for DescriptionHTML, they are only needed in
    order to correctly format and show issue's but it's highly unlikely that
    a repository description will refer to a local issue.
    
    Using 125 Connections for 5 seconds: on `/explore/repos`(which is the most
    noticeable usage by this function's database lookups):
    
    Before:
    
    Statistics        Avg      Stdev        Max
      Reqs/sec       569.41     506.05    2715.00
      Latency      214.27ms    16.60ms   294.84ms
      HTTP codes:
        1xx - 0, 2xx - 2974, 3xx - 0, 4xx - 0, 5xx - 0
        others - 0
      Throughput:    27.17MB/s
    
    After:
    
    Statistics        Avg      Stdev        Max
      Reqs/sec      1585.04     789.84    4144.56
      Latency       78.89ms    15.89ms   206.94ms
      HTTP codes:
        1xx - 0, 2xx - 7975, 3xx - 0, 4xx - 0, 5xx - 0
        others - 0
      Throughput:    73.85MB/s
    Gusted committed Feb 26, 2022
    Configuration menu
    Copy the full SHA
    0411d12 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2022

  1. Update models/repo/repo.go

    6543 authored Feb 27, 2022
    Configuration menu
    Copy the full SHA
    8c1764d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48c6f43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20788fe View commit details
    Browse the repository at this point in the history