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

Cache command output locally #184

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Cache command output locally #184

merged 1 commit into from
Jan 11, 2023

Conversation

michaeljguarino
Copy link
Member

@michaeljguarino michaeljguarino commented Jan 7, 2023

Summary

We currently only persist command output per-line, which works except that a lot of commands have very long pauses per-line. Use in-memory caching to save overusing the database for this, and have a fallback when the cache misses to what's currently persisted to approximate a continuous db-write.

Test Plan

existing tests pass, will try a live test after merge

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • I have added relevant labels to this PR to help with categorization for release notes.

@michaeljguarino michaeljguarino added enhancement New feature or request backend Changes related to the backend labels Jan 7, 2023
@michaeljguarino michaeljguarino requested a review from a team January 7, 2023 01:27
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2023

Visit the preview URL for this PR (updated for commit be9f105):

https://pluralsh-console--pr184-build-cache-1okj9973.web.app

(expires Wed, 18 Jan 2023 20:52:50 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dd1ffa0705acc6ef7d6db370e6bd6fc390e945ce

We currently only persist command output per-line, which works except that a lot of commands have very long pauses per-line.  Use in-memory caching to save overusing the database for this, and have a fallback when the cache misses to what's currently persisted to approximate a continuous db-write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Changes related to the backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants