Skip to content

Why is every query calling aws an extra time to get the workgroup first? Can this retrieved on initialization or be cached? #71

@veqryn

Description

@veqryn

If the workgroup being used is not the "default" workgroup, on every single query that is done this driver will call AWS to first get the workgroup:

athenaWG, err := getWG(ctx, c.athenaAPI, wg.Name)

Why is this done?

Can it be done once during initialization or when the workgroup is set?
Can this be cached?

Right now, it adds a full round-trip to aws before the query is even started, for every query being run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions