Skip to content

Caching for get_intersection_by_model() #5

@SardarNL

Description

@SardarNL

The method fetches all pk's (which can be a lot), then limits queryset on pk__in = pks. Either provide a method which allows fetching raw pks (best solution) or store them in a cache if settings.TAGGING_CACHE is set. Packed list of int's consumes very little memory in the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions