Skip to content

Set cache_ok=True on remaining custom TypeDecorators - #97

Merged
koenvo merged 1 commit into
mainfrom
fix/typedecorator-cache-ok
Aug 12, 2026
Merged

Set cache_ok=True on remaining custom TypeDecorators#97
koenvo merged 1 commit into
mainfrom
fix/typedecorator-cache-ok

Conversation

@koenvo

@koenvo koenvo commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

PathString, RevisionStateString, OperationString, TaskStateString and
IngestionJobStateString lacked cache_ok, so SQLAlchemy could not cache the
compiled statement for any query touching those columns — emitting a SAWarning
and recompiling on every execution (surfaced by get_dataset_summary_map, which
selects revision.state). They are stateless decorators (fixed impl, no params
affecting SQL), so caching is safe, matching DatasetStateString/TZDateTime.

Claude-Session: https://claude.ai/code/session_01B5EfLJqoafjW1FhvkxGSmg
@koenvo
koenvo merged commit 1a1ad24 into main Aug 12, 2026
13 checks passed
@koenvo
koenvo deleted the fix/typedecorator-cache-ok branch August 12, 2026 12:19
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