Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: spike for database connections slowing down insight loading #45472

Open
@leonore

Description

@leonore

follow up on #42128

I wonder if it's possible with lower usage all the connections timeout and are closed and then when a new request comes with a rush of new sql it has to pay the cost of reestablishing a number of them.

The default Idle Connection time is 1 min, so if there wasn't any activity to the insightsdb those connections could get closed and then at next insights related page opening a bunch of connections would need to get reestablished.

the slowness we see in some insights, where we hit thousands of ms graphql calls and the traces do not account for this time. however this is not easily reproduceable.

image

/cc @Joelkw @felixfbecker @vovakulikov

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendAny issue that needs work in the backend to closecode-insightsIssues related to the Code Insights productspikeTime boxed investigation meant to facilitate more granular planning.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions