A
A
adam_carraway2020-12-14 12:56:22
Laravel
adam_carraway, 2020-12-14 12:56:22

How to optimize api request that uses lazy collection?

The problem is the following. Now one controller method uses lazy collection with pagination (there is no way to get rid of lazy collection yet). This method is accessed via api (from another domain). And when there are more than 50k records in the table, then the query returns an error
5fd736627d78a303037009.png, which is understandable why this happens. Though if locally will address to this method that all norms. How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question