Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Why alteryx slows down when interacting with python?

gregx
8 - Asteroid

I noticed one unexpected of alteryx.

If I add some simple python code then any action in the workflow will be incredibly slow.

I have to wait 5 seconds to drag connectors or even if I want to move an icon to another place it can take few seconds.

 

I have no idea why it does slow down the whole workflow creation. It's not about running the workflow, it's about just dragging and dropping empty icons.

Any ideas to stop this slowdown?

 

It drives me crazy as it extends the creation time 4-5 times

 

Without python alteryx would be useless, so I can't remove python code.

5 REPLIES 5
apathetichell
20 - Arcturus

Python operates in a virtual environment. This is always true of Python. Accessing the Python code requires booting/accessing this VM and installing the necessary packages.

 

The speed you are seeing is because Alteryx caches metadata to allow for actions and your workflow stream. Python is unexpected (ie Alteryx has no idea what is going on inside of the tool and how it affects your metadata) so any change there effects all the other tools disproportionately...

gregx
8 - Asteroid

I understand that, but why it slows the whole process of creating workflow? 

Even if I don't touch the python tool (I don't connect it) I will be extremely slow to put unconnected icon into workflow.

apathetichell
20 - Arcturus

a few things. yes development with the python tool can slow things but it let's see if we can get this working a bit better:

1) one put your python tool in a macro. this should prevent it changing everything.

2) what are your system specs (ie how much ram do you have?)

3) how large is your python code - and how many packages do you install/use?

4) can you post a screen grab of your workflow? trying to understand the scopes involved and if any other tools may be causing lags.

BrandonB
Alteryx
Alteryx

It may also be helpful to add a select tool after the Python tool and "Cache and run" the workflow so that the logic doesn't need to execute again. 

Bluebird_Tim
7 - Meteor

@gregx  Not sure if you got this solved but was googling around and found the solution posted here.  Made a massive difference for me.

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/What-can-I-do-to-get-rid-of-th...

Labels
Top Solution Authors