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

Docs: move in the documentation on caching #4228

Merged
merged 2 commits into from
Jul 10, 2020

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jul 8, 2020

Fixes #3988

The content is mostly moved in from existing content, just adapting the
style to the new guidelines.

@sphuber sphuber force-pushed the fix/3988/docs-caching branch 5 times, most recently from cf8b9fe to a91a35c Compare July 9, 2020 07:16
@sphuber sphuber requested a review from csadorf July 9, 2020 07:37
docs/source/howto/run_codes.rst Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved
docs/source/howto/run_codes.rst Outdated Show resolved Hide resolved

`#3988`_
Finally, while caching saves unnecessary computations, it does not save disk space: The output nodes of the cached calculation are full copies of the original outputs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason that this is shown as separate paragraph instead of just another bullet point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think so. Will include as bullet point

docs/source/howto/run_codes.rst Show resolved Hide resolved
sphuber added 2 commits July 10, 2020 14:10
The content is mostly moved in from existing content, just adapting the
style to the new guidelines.
Split off the technical details to a Topics section. I put it under the
"Provenance" topic, as I don't think it needs its own top level section.
Even though caching only applies to calculation jobs at the moment, and
so one could argue to place it there, really this is a current
implementation detail and this is explained in the limitations. Since it
has fundamentally to do with the provenance, I think this is the best
fit.

Finally, I put an `important` block at the beginning of the how-to to
explain why it is not enabled by default and to warn users of the
caveats, which links to the topics section.
@sphuber sphuber force-pushed the fix/3988/docs-caching branch from a91a35c to 1ce8f94 Compare July 10, 2020 12:10
@sphuber
Copy link
Contributor Author

sphuber commented Jul 10, 2020

Thanks for the review @csadorf . I have addressed the simple comments and split off the details to a Topics section, and added a disclaimer. See commit message for reasoning of location of new section.

Copy link
Contributor

@csadorf csadorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!

@sphuber sphuber merged commit 9636ac7 into aiidateam:develop Jul 10, 2020
@sphuber sphuber deleted the fix/3988/docs-caching branch July 10, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: How to use caching to save computational resources
2 participants