vc-platform icon indicating copy to clipboard operation
vc-platform copied to clipboard

Limit the number of objects which can be get trough API

Open asvishnyakov opened this issue 6 years ago • 0 comments

Problem: Currently you may ask hundreds and thousands of objects through "get by ID" or especially search APIs. It will cause large requests to database, high memory usage and problems with cache

Solution: Return an error if number of objects is large than specified in settings (my proposal is 100 as default value)

Alternative (optional): Describe this situation in docs, log warning in Application Insights

asvishnyakov avatar Aug 30 '19 16:08 asvishnyakov