server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

Calls taking tremendous amount of time

Open TrimPeachu opened this issue 1 year ago • 3 comments

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

TrimPeachu avatar Apr 27 '23 08:04 TrimPeachu

This sounds like a bug in 0.26, try using 0.25.

jacalata avatar Apr 27 '23 09:04 jacalata

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

TrimPeachu avatar Apr 27 '23 10:04 TrimPeachu

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.

bcantoni avatar Aug 03 '23 23:08 bcantoni