cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

get rows where: speed issue

☐ cool new feature
☑ could help many users!

☑ removes a „bug“

☐ nice to have

☐ nobody needs it

 

#myTop10_2022

 

 

Get rows where is extremely slow if the column is referenced with a varible (here i=5 )

dt = Open( "$SAMPLE_DATA/Wafer Stacked.jmp" );
t0=hptime();
i = 5;
dt << get rows where( As Column( dt, i ) == 10 );
(hptime()-t0)/1000000;

instead of a direct reference like in

dt << get rows where( As Column( dt, 5 ) == 10 );

My wishes:

 

 

 

more wishes submitted by  hogi_2-1702196401638.png

6 Comments
Status changed to: Acknowledged

Hi @hogi, thank you for your suggestion! We have captured your request and will take it under consideration.

hogi
Level XII

Thanks

Status changed to: Yes, Stay Tuned!
 
hogi
Level XII

hi Sarah. Is there an update?

If not, I can live without : )

Status changed to: Delivered

Hi @hogi, I apologize for not responding to your earlier message! If you want to be sure I will get a notification, please tag me. In JMP 18, there is a new JSL function Where that is a replacement for dt << Get Rows Where. Please check it out and let me know if it solves your issue. For now, I have marked this as Delivered.

hogi
Level XII

hi @Sarah-Sylvestre 

 

the above code gives 4625 matching rows, when I try it with

 

dt = Open( "$SAMPLE_DATA/Wafer Stacked.jmp" );
t0=hptime();
i = 5;
where(dt,  As Column( dt, i ) == 10 );
(hptime()-t0)/1000000;

I get

hogi_0-1758573228553.png


Can Where() be used for this application? how?