Skip to content

fix(fs): remove DVC-specific broken cache optimization#321

Merged
shcheklein merged 1 commit intomainfrom
fix-fs-cache
Dec 18, 2023
Merged

fix(fs): remove DVC-specific broken cache optimization#321
shcheklein merged 1 commit intomainfrom
fix-fs-cache

Conversation

@shcheklein
Copy link
Member

To mitigate treeverse/dvc-gdrive#38

It removes the pre-caching logic of root/00, root/01, .... root/ff DVC cache specific directories. It existed to optimize number of API calls, specifically when we use exists calls on the DVC transfer side and we have to do 2x calls in some simple scenarios. It's slower and expensive.

With this PR cache is becoming more general (e.g. we cache all directories we create). It makes sense for fsspec. To make it clear - the whole fsspec implementation in general case is still very broken and it'll be addressed step by step eventually.

The optimization can be turned back on with ad additional "pre_cache_path" argument. But let's do it after we fix the basic GDrive scenario with this one.

@shcheklein shcheklein merged commit af35d4b into main Dec 18, 2023
@shcheklein shcheklein deleted the fix-fs-cache branch December 18, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority-p1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants