Skip to content

Add an option to @Field annotation to control property write rules [DATAMONGO-2551] #3407

Closed
@spring-projects-issues

Description

@spring-projects-issues

isopov opened DATAMONGO-2551 and commented

In mongo it is possible to completely omit writing a field in collection if it is not needed in this document. This has a benefit of using sparse indexes on such field (or their modern replacement indexes with partial filters on exists=false). Also it reduces storage size. It seems that it would be beneficial to have an boolean option for Field annotation named omitNull (or any other name) that will allow to skip writing this field if it has null value


No further details from DATAMONGO-2551

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions