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

Add jsonb option to json field type. #230

Merged
merged 4 commits into from Oct 8, 2022

Conversation

mario-fehr
Copy link
Contributor

@mario-fehr mario-fehr commented Oct 5, 2022

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #219
Related issues/PRs #219
License MIT

What's in this PR?

Change MetadataLoader to use JSONB instead of JSON to store data in tables.

Why?

https://scalegrid.io/blog/using-jsonb-in-postgresql-how-to-effectively-store-index-json-data-in-postgresql/

In doctrine by adding options: ['jsonb' => true] will use when available the JSONB fieldtype instead of JSON in database like postgresql which is in most cases the better match as it allow store the data in a binary way and allow so more performant queries.

To Do

  • Add sql query to UPGRADE.md if needed

@coveralls
Copy link

coveralls commented Oct 5, 2022

Pull Request Test Coverage Report for Build 3210251831

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 3179721863: 0.0%
Covered Lines: 1809
Relevant Lines: 1809

💛 - Coveralls

@mario-fehr mario-fehr marked this pull request as draft October 5, 2022 11:10
@mario-fehr mario-fehr marked this pull request as ready for review October 6, 2022 11:48
UPGRADE.md Outdated Show resolved Hide resolved
@alexander-schranz alexander-schranz enabled auto-merge (squash) October 8, 2022 11:35
@alexander-schranz
Copy link
Member

@mario-fehr Thank you!

@alexander-schranz alexander-schranz added the Performance Problems with performance label Oct 8, 2022
@alexander-schranz alexander-schranz merged commit b9cc927 into sulu:0.6 Oct 8, 2022
@mario-fehr mario-fehr deleted the enhancement/use-jsonb branch October 8, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Problems with performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants