Barelydead / strapi-plugin-populate-deep

A Strapi plugin that makes it easier to populate deep content structures
172 stars 39 forks source link

Set maxDepth to protect Server #30

Open hoai-nguyen opened 1 year ago

hoai-nguyen commented 1 year ago

Is there a way to set a maxDepth for the population? So that I can protect my server from being overload. When I tried to set maxDepth=2 and tried with depth=10 (localhost:1337/api/articles/6?populate=deep,10), the API server seemed to be stuck. I think it takes too much time processing that request and blocks other requests because the depth is too much.

Maybe I can use a policy to check for this but it would be nice if we support this feature in this plugin.

image