API performance improvement #555
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
The GET method returns a full representation of the object, which leads to a longer response time per returned entry.
Improvement
We should think about one of the following solutions to this problem:
propertiesattribute to the GET endpoint, which holds the desired attributes in thepropertieselement of the returned geojson. This way a call on.../api/v1/intervention?properties=identifier,idwould return a minimalistic geojson, holding only the geometry andidentifierandid. If nopropertiesparameter is given, the regular full object representation will be returned..../api/v1/intervention/brief, which returns an extremely reduced set of attributes, which are equal to all types of objects (e.g.id,identifier,title,last_modified)