Skip to content

Remove unnecessary SQL queries #1454

Open
@mindaugasvcs

Description

@mindaugasvcs

$tag = $tags->findOneBy(['name' => $request->query->get('tag')]);

Hi,
I think a reference application should not promote unnecessary SQL queries. You fetch a tag object from DB then execute another SQL call, why not just passing a tag as a string to the PostRepository instead? Can I offer PR to fix this line to use just one SQL call?

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