Add an option to @Field annotation to control property write rules [DATAMONGO-2551] #3407
Labels
in: mapping
Mapping and conversion infrastructure
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Milestone
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
The text was updated successfully, but these errors were encountered: