Skip to content

docs: propose native JSON columns for metric and consent tables - #2916

Open
constantine2nd wants to merge 1 commit into
OpenBankProject:developfrom
constantine2nd:docs/native-json-columns-proposal
Open

constantine2nd wants to merge 1 commit into
OpenBankProject:developfrom
constantine2nd:docs/native-json-columns-proposal

Conversation

@constantine2nd

Copy link
Copy Markdown
Contributor

Adds ideas/NATIVE_JSON_COLUMNS.md — a short proposal, no code changes.

Why

Several of our largest columns hold JSON (metric.responsebody, mappedconsent.mjsonwebtokenpayload, consentrequest.payload) but are declared as plain text, so the database cannot read them. We capture, store and pay for that data, then cannot query it without exporting it.

/management/metrics offers ~20 filters, every one a dedicated column added by hand in its own migration and release.

What the doc says

Extend PostgreSQL's native JSON type (jsonb) to those tables, so the cost of a new question drops from a release to a query. The doc frames the benefit as user journeys (support, compliance, fraud, product, engineering) rather than implementation.

It inherits the principle already settled in ideas/dynamic_entity_indexing.mdDB-native JSON is an optional accelerator behind capability detection, never a requirement — and reuses the vendor detection that already ships as IndexingCapabilities, rather than introducing a parallel mechanism.

Scope

Documentation only. No API contract change, no schema change, no code. The ask is agreement to pilot on metric.responsebody.

@sonarqubecloud

Copy link
Copy Markdown

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