Skip to content

Embedded Subset Pattern implementation #2608

Open
@etshy

Description

@etshy

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

I learned about this pattern when searching about when/what to embed etc. and I think it could be a great addition to doctrine-odm.
I'm not sure how it could be implemented yet but having an Attribute #[SubSet(number:5, sort: DESC)] in addition to an attribute #[ReferenceMany] to store the 5 most recents referenced directly on an embed could reduce read operation on the db.

I learned about this pattern on the mongodb website here and here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions