Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

shcheklein
Copy link
Member

To mitigate iterative/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
16 checks passed
@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