Skip to content

Norm.valid?/2 becomes prohibitively slower after a certain amount of records to validate #65

@gesta

Description

@gesta

Problem:
A conformity check is building two separate lists, consisting of the valid and invalid records, with a max total sum of the length of the input, which is becoming prohibitively slower after ~30 thousand records.
This holds true for a validation check, as under the hood it performs a conformity check and matches the result.

Proposal:
Optimise the validation check to not keep temporary results, while replicating the conformity check patterns. As an extra bonus (for multiple checks performed under a single validation) the validation stops once any check fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions