Skip to content

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Mar 31, 2025

Speed up postgis by putting the database on tmpfs instead of the slow Docker overlay filesystem.

Since this means our test data will most likely be lost anyways if the database crashes, also turn off fsync and other data consistency things that slow down postgis.


📚 Documentation preview 📚: https://datacube-explorer--661.org.readthedocs.build/en/661/

Put the database on tmpfs
to reduce IO operations.
The database is already on tmpfs
so things will be lost if the power
is cut in the middle of things.
Disable fsync as well, to speed up
testing.
The database is already on tmpfs
so things will be lost if the power
is cut in the middle of things.
Disable full_page_writes as well,
to speed up testing.
The database is already on tmpfs
so things will be lost if the power
is cut in the middle of things.
Disable synchronous_commit as well,
to speed up testing.
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.26%. Comparing base (7d933f4) to head (61eda77).
Report is 39 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #661      +/-   ##
===========================================
- Coverage    89.26%   89.26%   -0.01%     
===========================================
  Files           34       34              
  Lines         4119     4118       -1     
===========================================
- Hits          3677     3676       -1     
  Misses         442      442              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@omad omad merged commit ddd5056 into opendatacube:develop Apr 1, 2025
7 checks passed
@pjonsson pjonsson deleted the compose-ramdisk-db branch April 1, 2025 07:48
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.

2 participants