You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have some sort of runtime validation for my use of indexes. I can do a describe table but I think arc/functions might be an interesting place to do the discovery like it does for tables.
That's interesting. So you're thinking in the same place where arc/functions creates individual table client interfaces, we also augment that client interface with index key schemas too? Describe table also provides the main table's key schema so we can also infer from that. I'm open to it.
My one concern is that this introduces an additional API call (Describe Table) per table defined in the app. If you're using arc/functions tables() in a short-lived lambda invocation for a single API operation for a single table, if calling DescribeTable is done aggressively for all tables right from the start, that could have serious performance consequences. If this API call could be implemented so that it lazily loads this information, per table, then I'd be open to that, i.e. making it async (and e.g. calling the Describe Table API once and then caching the result).
I want to have some sort of runtime validation for my use of indexes. I can do a describe table but I think arc/functions might be an interesting place to do the discovery like it does for tables.
The index name and fields would be nice.
I'm not sure I nailed the result object but it's close.
The text was updated successfully, but these errors were encountered: