Closed Wim-De-Clercq closed 4 years ago
Because def get_by_uri calls def get_by_id internally, you end up with double cache entries, 1 for each method when calling get_by_uri. Maybe it's not worth to have a cache decorator on the get_by_uri and save on caching memory/disk space?
def get_by_uri
def get_by_id
get_by_uri
https://github.com/OnroerendErfgoed/skosprovider_atramhasis/blob/905630b7c35c2c80381ea41f8337268df13f0c5b/skosprovider_atramhasis/providers.py#L115-L133
Ah, ik had over de self._request binnen get_by_uri gekeken. Dat is waarschijnlijk een slecht plan dan.
self._request
Because
def get_by_uri
callsdef get_by_id
internally, you end up with double cache entries, 1 for each method when calling get_by_uri. Maybe it's not worth to have a cache decorator on theget_by_uri
and save on caching memory/disk space?https://github.com/OnroerendErfgoed/skosprovider_atramhasis/blob/905630b7c35c2c80381ea41f8337268df13f0c5b/skosprovider_atramhasis/providers.py#L115-L133