Uh oh!
There was an error while loading. Please reload this page.
Cache path by id - #43471
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2e8fb89 to
e7108d5CompareUh oh!
There was an error while loading. Please reload this page.
ed9cc7d to
a2846beCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
6baf20a to
57e7266CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
0a36121 to
68ad797Compare2f8b275 to
82b8696CompareUh oh!
There was an error while loading. Please reload this page.
82b8696 to
3ed8287CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dbb9170 to
3dfef53Compare…des for the id this should be enough in most(?) cases and makes efficient implementation and caching easier Signed-off-by: Robin Appelman <robin@icewind.nl>
3dfef53 to
5d55e1aCompare…rstNodeById Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
5d55e1a to
a9ee278Compare
Cache fileid to path mapping.
The fact that a single fileid can have multiple paths complicates attampts to cache this information, however since most usages of
getByIdonly use a single item of the result, and always the same one (whether or not this is correct for that usage is another question 🙈). We can provide a new api that only returns a single result which makes caching easier.We can get away with using a local cache without doing any active cache invalidation by checking that the node at the path we cached still has the correct fileid.
getFirstNodeByIdto get a single node for id regardless of how many nodes with that id the user hasgetByIdthat always use the first node to the new apigetFirstNodeByIdI would recommend reviewing this PR commit-by-commit as most of the changes by LOC are mechanical changes to adjust to the new api.