Skip to content

Conversation

@r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Aug 11, 2024

Adds dbJsonColumn field property - stores a field, that should create additional tables (hasMany Text / Number / Select, Array / Blocks, Polymorphic / hasMany relationships) as a json column.

Motivation: simplify migrations / raw querying, improve speed by not joining tables (while currently, with blocks you can have them a lot). In my opinion, MongoDB is better when working with unstructured data in blocks / arrays for sites.
Well, Payload docs When to choose MongoDB even says:

You leverage a lot of array fields, block fields, or hasMany select fields and similar

With this addition, will this actually be true anymore?

Prev PR (this one contains only this feature) #6983

Description

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation
@paulpopus paulpopus requested a review from DanRibbens August 11, 2024 16:08
@github-actions
Copy link
Contributor

This PR is stale due to lack of activity.

To keep the PR open, please indicate that it is still relevant in a comment below.

@github-actions github-actions bot added the stale label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant