Skip to content

Refactor: Remove redundant email existence check #3

@SuperMo0

Description

@SuperMo0

Currently, we manually query the database to check if an email exists before creating a user.

We should remove this extra query and rely on the database's UNIQUE constraint. We can simply try to insert the user and catch the unique constraint error. This improves performance by making only one request instead of two.

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