Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch JSON references to JSONB #172

Merged
merged 1 commit into from Mar 1, 2023
Merged

Switch JSON references to JSONB #172

merged 1 commit into from Mar 1, 2023

Conversation

rdlrt
Copy link
Contributor

@rdlrt rdlrt commented Mar 1, 2023

Description

Switch all JSON references to JSONB (non-breaking for Koios endpoints consumption):

  • Helps columns be kept consistent
  • Allows use of filters in PostgREST URL as cs.[{"key":"value"}] , allowing filters for arrays.
  • Faster to read (tho slower to form) - output performance should not have much impact for 1000 observations (sure, some JSON arrays might be larger, but still - the overhead in larger scheme for creating JSON vs JSONB shouldn't be as big)

@rdlrt rdlrt requested a review from Scitz0 March 1, 2023 00:10
@rdlrt rdlrt merged commit 59b2a68 into main Mar 1, 2023
@rdlrt rdlrt deleted the json_jsonb branch March 1, 2023 08:53
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.

None yet

2 participants