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.
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:
athenadriver/go/connection.go
Line 341 in be26bb1
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.