Skip to content

Support excluding all fields from having database indices in the historical table by using __all__ in no_db_index #1491

Open
@rajarehanahmed

Description

@rajarehanahmed

Problem Statement
Although we can specify individual fields with db_index=True in no_db_index to exclude them to be indexed in the historical model, there's currently no way to exclude all indexed fields without listing each one explicitly.

Describe the solution you'd like
A simple sentinel value __all__ that can be used in no_db_index to exclude all fields from being indexed.

Describe alternatives you've considered
We are going to inherit the simple history model and override the functionality in our own codebase till this goes live.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions