Skip to content

Faster SQL data saving#428

Merged
Grufoony merged 8 commits intomainfrom
fasterSQL
Mar 23, 2026
Merged

Faster SQL data saving#428
Grufoony merged 8 commits intomainfrom
fasterSQL

Conversation

@Grufoony
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.27%. Comparing base (6d5da45) to head (fc25474).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #428   +/-   ##
=======================================
  Coverage   87.26%   87.27%           
=======================================
  Files          52       52           
  Lines        6457     6461    +4     
  Branches      715      717    +2     
=======================================
+ Hits         5635     5639    +4     
  Misses        803      803           
  Partials       19       19           
Flag Coverage Δ
unittests 87.27% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to speed up SQLite persistence during simulations by tuning SQLite settings and reducing overhead in periodic batch inserts, and it updates the PyPI/TestPyPI publish workflow to handle existing versions more explicitly.

Changes:

  • Tune SQLite PRAGMAs for higher sustained write throughput when saveData() is configured.
  • Consolidate periodic writes into a single transaction and avoid repeated per-row value recomputation during inserts.
  • Update PyPI/TestPyPI publish policy: fail on existing versions for PyPI pushes, and delete/re-publish for TestPyPI PRs; bump patch version.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/dsf/mobility/FirstOrderDynamics.cpp Adds SQLite PRAGMA tuning; batches inserts under a shared transaction; refactors avg_stats computations/binds.
src/dsf/dsf.hpp Bumps DSF patch version (5.3.0 → 5.3.1).
.github/workflows/pypi.yml Adds version existence output, enforces “no overwrite” on PyPI pushes, and deletes existing TestPyPI versions on PRs before upload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Grufoony Grufoony merged commit 2ae849c into main Mar 23, 2026
48 checks passed
@Grufoony Grufoony deleted the fasterSQL branch March 23, 2026 13: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