Skip to content
Discussion options

You must be logged in to vote

When querying the database we don't load all the records into memory and verify if the user has access to each one of the records via policy, this is memory intensive process and often or not will exceed request timeout if you have a fairly large amount of records.

To combat this we have relatableQuery and even indexQuery to limit the access directly when querying the database. You can read it in the documentation: https://nova.laravel.com/docs/4.0/resources/authorization.html#relatable-filtering

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@benittobeny34
Comment options

@crynobone
Comment options

@benittobeny34
Comment options

@crynobone
Comment options

@benittobeny34
Comment options

Answer selected by benittobeny34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4472 on June 23, 2022 05:28.