Repository navigation
docs(reference): benchmark MySQL and PostgreSQL backends - #315
Open
dimitri-yatsenko wants to merge 4 commits into
Open
dimitri-yatsenko wants to merge 4 commits into
dimitri-yatsenko wants to merge 4 commits into
Conversation
Add a Backend Performance reference page that compares MySQL 8.0, MySQL 8.4, PostgreSQL 16 and PostgreSQL 17 on the same DataJoint queries: fetches by primary key and complex queries nested up to five levels, with blobs stored in the table, blobs in a file store, and JSON attributes. The page documents the method, the results by level of nesting, follow-up experiments that explain the largest differences, sensitivity passes and limits. Link the page from the Reference index and the Database Backends spec.
dimitri-yatsenko
force-pushed
the
docs/backend-benchmark
branch
from
November 20, 2026 15:04
b30cc85 to
bfbdf35
Compare
dimitri-yatsenko
marked this pull request as ready for review
November 20, 2026 15:28
This branch has not been deployed
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.
Summary
Adds Reference → Backend Performance (
src/reference/backend-performance.md). The page compares MySQL 8.0, MySQL 8.4, PostgreSQL 16 and PostgreSQL 17 on the same DataJoint queries:It documents the method, the results by level of nesting, follow-up experiments that explain the largest differences, sensitivity passes and limits. Four SVG figures follow the site's light/dark theming. The page is linked from the Reference index and the Database Backends spec.
Findings
innodb_flush_methodbetween versions shows that the newO_DIRECTdefault is the cause.Before merging
Merge after datajoint/datajoint-python#1671, the subquery pruning planned for 2.4. The page opens with a note that its results apply to DataJoint 2.4 and later, with pruning on by default, and links datajoint-python#1665, which describes the benefits of pruning. The measured build is
masterateefe74b4with #1671 merged in.Checks
mkdocs build --strictpasses.scripts/check_links.pypasses: internal links and images resolve across 146 pages.scripts/check_markdown_lists.pypasses.