get rows where: speed issueGet rows where is extremely slow if the column is referenced with a varible (here i=5
i = 5;
dt << get rows where( As Column( dt, i ) == 999 );
instead of a direct reference like in
dt << get rows where( As Column( dt, 5 ) == 999 );
My wishes:
- could you please explain why this is the case
- could you please try to fix this issue in a future release of Jmp.
- if fixing the issue is not possible, could you please implement a warning function in JSL such that the user gets informed about the bad performance.
Then he can adjust the code, e.g. with a substitute:
https://community.jmp.com/t5/Discussions/Should-you-Loop-through-a-data-table-or-use-Recode-or-use-Get/m-p/579844/highlight/true#M78711
Automation and ScriptingBasic Data Analysis and ModelingData Blending and CleanupData Exploration and VisualizationScriptingSharing and Communicating ResultsStatistics and Analytics