Closed manuelKruesi closed 1 month ago
I just noticed that there were way more Items attached than i had anticipated and therefor the slow response is understandable. If you encounter a similar problem: Try using another approach to get the referenced Items than the get_references, since this is borderline useless. Build your own foreach or filter function to retrieve less Items.
Hello there and thanks in Advance for your help!
I am using
$references = \PodioItem::get_references($this->client, $item_id );
to retrieve all linked items for a specific item. I am observing a strange behaviour i cannot explain: Sometimes, this operation is extremly slow, mostly on my first few calls of the day. I am not using any caching, but it seems after i used this call a few times, it gets faster, so i suppose there is some sort of caching on podios side. Heres a short outtake from my logs:As we see, it is very slow (almost 4 seconds for the first call, fails on the 2nd (note: the time is logged before the actual call))
now when i reload after the error it looks more like this:
While still slow, it is now much faster (0.8s)
Has anyone had this issue before or knows a way to work around this? Thanks a lot for your help!