server-client-python
server-client-python copied to clipboard
Calls taking tremendous amount of time
Describe the bug
I am not sure when it began, as I have not run my script for over a month, but for some reason, calls that took a fraction of time now take a huge amount of time. For example, simple populating groups that took 3-5 seconds top now takes over a minute and a half. Also populating permissions to my projects that used to take 1 minute tops now took 22 minutes.
Could you take a look at it?
Versions Tableau Online Python 3.9 tsc 0.26
To Reproduce
all_groups = {}
for group in tsc.Pager(self.client.groups):
self.client.groups.populate_users(group)
all_groups[group.id] = group
This sounds like a bug in 0.26, try using 0.25.
Downgrading to 0.25 did fix the issue. I would guess that this issue is caused by changes to the endpoint.py in most recent version
I did some bisect testing (populating users, just like the original report here) and did confirm the perf change did come with #1212 which is what Jac suspected.