Skip to content

Change session.expire_all() to session.expunge_all() in delete_cascaded() #163

@rsyring

Description

@rsyring

Expire all leaves the entities that are in the session in the session. That likely increases memory usage and doesn't seem to have an advantage since delete_cascaded() is often called during test setup when we basically want everything reset. .expunge_all() seems like the better choice, I just didn't know about that method when I wrote .delete_cascaded() originally.

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