Skip to content

Use session to check if visit has been already recorded #33

Description

@hendrikschneider

Hello,

I checked your middleware and saw that with every request a db operation is being executed. I would suggest to use the session to store the last stored hash to check if it already has been recorded. This way the amount of times that the db is queried will be reduced.

Flow could be: Check session -> Check if entry exists on db -> Create db entry

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions