Skip to content

Query Performance #16

@SE-Graham

Description

@SE-Graham

@elgs Does gosqlapi support connection pooling when using MSSQL?

I'm running very simple queries that take ~20ms when executed directly in SQL Server Management Studio. However, the same queries take ~200ms when run through gosqlapi.

That’s a consistent ~180ms overhead. Any idea what might be causing this? Could it be due to connection pooling not being enabled or configured?

The query returns a single row with a few columns, so the payload is minimal. Here’s a sample response (personal details removed):

[
  {
    "date_of_birth": "1956-10-29",
    "exceptioncodes": null,
    "forenames": "A.",
    "gender": "F",
    "hidden": "YES4",
    "known_as": "A.",
    "member_class": 6,
    "member_status": 33,
    "membership_no": "*****",
    "sbclass": null,
    "sclass": null,
    "smclass": null,
    "surname": "F."
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions