cubicweb #2719110 Default primary can generate Huge query [done]

In web.views.primary.PrimaryView._prepare_side_boxes there is a call to _relation_rset which call related

This fetch all entities at the end of a relation. Something that may be very big. In addition the related method seems to build and entity object for all elements in the rset. Keeping them in cache.

priorityimportant
typebug
done in3.16.1
load0.200
load left0.000
closed by#b84a233cb8b0 [views/primary] some inner sections should use the `limit` by default to avoid a denial of service (closes #2719110)
patch[views/primary] side boxes computation should use the `limit` to avoid a denial of service (closes #2719110) [applied]