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

Suggest to use jsonb instead of json #110

Open
fatkodima opened this issue Jul 20, 2022 · 2 comments
Open

Suggest to use jsonb instead of json #110

fatkodima opened this issue Jul 20, 2022 · 2 comments

Comments

@fatkodima
Copy link
Contributor

This is PostgreSQL specific. The problem is described here - https://github.com/fatkodima/online_migrations#adding-a-json-column.
Also seems like jsonb is the preferred type and it also shows a better performance.

@gregnavis
Copy link
Owner

gregnavis commented Jul 20, 2022

I like the idea.

More generally, we could have a detector that looks for columns of type X and recommends converting to type Y. Can you think of any other examples where this would be a good idea?

Also, please hold off with development as I'd like to clean up the PR backlog first.

@fatkodima
Copy link
Contributor Author

Can you think of any other examples where this would be a good idea?

From the top of my head - nope, but need to research.

Also, please hold off with development as I'd like to clean up the PR backlog first.

😄

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

No branches or pull requests

2 participants