Hey, I see a new search field in the storage api. ...
# supabase-kt
b
Hey, I see a new search field in the storage api. I was reading up on using prefix and it looks like that’s better for folders not filenames. But then I saw a search field. If I do something like this is it getting all the files then filtering them or is it only getting files with the search field?
Copy code
client.storage["avatar"]
  .list {
    search = profileId
  }
I wanna make sure that I’m not fetching every file in a folder first because as the app gets big this query will take a long time
j
I'd assume the search property is just used as a filter for the PostgREST query executed. So I don't think all files are fetched before filtering