vc-platform
vc-platform copied to clipboard
Limit the number of objects which can be get trough API
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