Skip to content

Migrate custom_metadata column to JSONB + add global GIN index#2337

Merged
shangyian merged 1 commit into
DataJunction:mainfrom
shangyian:dj/cm-phase-1-storage
Jul 17, 2026
Merged

Migrate custom_metadata column to JSONB + add global GIN index#2337
shangyian merged 1 commit into
DataJunction:mainfrom
shangyian:dj/cm-phase-1-storage

Conversation

@shangyian

Copy link
Copy Markdown
Collaborator

Summary

Changes NodeRevision's custom_metadata from JSON to JSONB (with JSON fallback for non-Postgres dialects).
Also adds a GIN index using jsonb_path_ops, and includes the corresponding Alembic migration.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 544c2da
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a5a21f0d26ec20008a0a859

Changes NodeRevision.custom_metadata from JSON to JSONB (with JSON fallback
for non-Postgres dialects), adds ix_noderevision_custom_metadata_gin using
jsonb_path_ops, and includes the corresponding Alembic migration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shangyian
shangyian force-pushed the dj/cm-phase-1-storage branch from 2b7e2bd to 544c2da Compare July 17, 2026 12:37
@shangyian
shangyian marked this pull request as ready for review July 17, 2026 12:37
@shangyian
shangyian merged commit 4ad3412 into DataJunction:main Jul 17, 2026
21 checks passed
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.

1 participant