Skip to content

Add Preallocation Attribute #35

@Turnerj

Description

@Turnerj

Add an attribute which can preallocate an array for X number of items. This would construct the generic type on the list (or array type) from the base constructor. This would be through the insert mutator to update the document before insert.

This can boost update performance by avoiding issues with needing to reallocate space for a document.

See: https://docs.mongodb.com/manual/core/write-performance/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancements & features

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions