Feature Request: Port storage functions to plpgsql #29317
Unanswered
purpleKarrot
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Functions like
signObjectUrlare currently implemented in typescript and have to be called through the REST API:If I want to display a list of users with their avatars, I have to make two requests:
Both requests eventually query the same database. It would be nice if there was a way to avoid this roundtrip.
Example: If
signObjectUrlwas implemented in plpgsql, I would expect being able to use it like this:Then, requesting a list of users, each with a signed URL for their avatar could be retrieved in a single query:
My recommendation would be to port most (/all?) of the storage functions to plpgsql and reimplement the storage REST API on top of them.
All reactions