Repository navigation
perf(file_storage): off-loop S3 spool I/O, one client per multipart upload, browse index - #837
Merged
Merged
Conversation
…pload, ordered browse index Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
…sk I/O; match spool test overrides Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
…uffer; lighter browse-index test Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
…fixtures in conftest Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Deploying simple-module-python with
|
| Latest commit: |
d403d4f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://34dec9eb.simple-module-python.pages.dev |
| Branch Preview URL: | https://fix-s13-perf-file-storage.simple-module-python.pages.dev |
# Conflicts: # CHANGELOG.md # docs/database/migrations.md # host/tests/test_migration_graph.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Performance fix for the file_storage S3 upload path and the file browse page (local performance review, 2026-11-05).
SpooledTemporaryFile. Work stays inline while the buffer is in memory, and moves to a worker thread once it rolls to disk or a write would push it past 2 MiB.S3MultipartMixin, so the public methods and the upload path cannot drift. Complete sorts the parts; abort toleratesNoSuchUpload.(tenant_id, is_deleted, created_at DESC, id)index for the default newest-first file list, added in migrationf6c2d4e8b109.Measured locally against a fake S3, with no network. Method and caveats are in
docs/perf/2026-11-05-file-storage.md.main.Pipeline:
_iocould spin when its inner task was cancelled;Local CI:
make lint✓,make test-js✓ andmake migrations-roundtrip-pg✓ (on a fresh database).make test-py(8 workers): all passed excepttest_clean_target_is_not_in_repo, the known local/tmp/.gitplaceholder failure.Note:
f6c2d4e8b109, #832'se805a1b2c3d4and #833'sc5d8e2f1a903all revisee731a1b2c3d4. Whichever merges later re-points itsdown_revision.https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4