MicroStrategy/mstrio-py

Asynchronous fetching

martinuphoff opened this issue · 1 comments

I am struggling to build up a reporting tool for shortcuts and attributes, sttribute forms, etc. The bottleneck at the moment is to load the individual attributes by id into the python program. Is there any possibility to use asynchronous code for that? I tried with asyncio but the connection seems to be limited to the standard pool size of 10, hence I get and urllib3 error there.
Regards, Martin

Update: I used a semphore to limit the number of threads. I boosted the execution time by roughly a factor of 2 and I noticed, that increasing the number of workers beyond 3 does not make a measureable difference. Is this a limit I configure on the Iserver (e.g. a maximum number of jobs per user)? Regards, Martin