Closed machow closed 1 year ago
Potential paths that become slower when cache is removed:
v1/content?name=<name>
find content x n_matches to convert user guid -> user name.v1/content/{guid}
endpointLast thing--if we tackle this alongside the pins-python issue of being able to use guids when looking up underlying paths, we can likely work out the fast implementations for looking things across both libraries.
From what I can tell, there's no way to completely fix the slowdowns we'd hit by removing the cache, using the current RSC API, but it also might not be too bad?
The issue is that we have two options for going from
v1/content?name=<content_name>
<guid>
parameter, but we only know <user_name>
./applications?filter=content_type:pin&search=<content_name>
.
<content_name>
, so there could be a lot more to filter.Because we lack a way to look up content from <user_name>/<content_name>
, we have to either take approach (1) and look up each user name manually, or take approach (2) and potentially get a lot of results to filter. Option (2) seems like it would work fairly well?
(Option (2) is also not technically part of the API, so we may want to make sure it won't change?)
This is done by #667, right?
We wanted to try out using /applications?filter=content_type:pin&search=<content_name>
for some things that are slower now like pin_search()
. It's not technically part of the API but we chatted with Kelly about using it.
Oh gosh 🙈 we are already doing this:
So yes, I believe this is all done now. ✅
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
For RSConnect boards, there is a
content-cache.yml
file that maps content name (e.g.my-mtcars-pin
) to its underlying RSConnect identifier (a content guid). However, because changes to the mapping between content and guid can come from multiple places (e.g. other laptops, the web UI) this cache can easily go stale.Opening this issue to track content-cache related problems, and to track research into what the effects of removing
content-cache.yml
would be.Here are some related issues:
Here are issues related to the other cache file,
user-cache.yml
:Edit: just a quick note on the two caches to clarify this issue.
<rstudio-guid>
-><username>
<username>/<content-name>
->rstudio-guid
andurl