Skip to content

Add support to disable update the last used #91

@alinalexandru

Description

@alinalexandru

Motivation

On environment with many requests, updating the last used field at every requests adds a lot of load on database. Especially when you have a master slave replication.
In our scenario that field is not used at all.

By disabling the update we gain 20% more throughput

return $this->supportsTokens($accessToken->tokenable) ? $accessToken->tokenable->withAccessToken(
                //tap($accessToken->forceFill(['last_used_at' => now()]))->save()
                $accessToken
            ) : null;

I am not a Laravel developer, so I can't submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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