Skip to content

getAsync() fails when retrieving to many models using set URL #580

@champ

Description

@champ

Issue

In cases of a model having a HasMany relation, when trying to fetch related models asynchronously using getAsync(), the set URL used (if your collection and backend supports it) can exceed the maximum length allowed by typical web servers (Apache has a limit of around 8k by default).

Solution

A simple approach to solve this issue would be to add an option chunkSize to getAsync() to split requested models in different set requests (here), similar to the default behavior of generating one request per model.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions