find slot made model run slowly

find slot made model run slowly

supportPHJ4A
Observer Observer
24 Views
6 Replies
Message 1 of 7

find slot made model run slowly

supportPHJ4A
Observer
Observer

[ FlexSim 22.1.3 ]

Hi,

I and other users met the same problem about storage sysytem.

When we use 'find slot' activity ,the model runed very slowly.

However the CPU and GPU of computer was used less.

1659066276398.png

1659066290104.jpeg

1659066297002.png

We used 'pull from list' acitivity to replace 'find slot', and the model runed well.

So we wonder why, can this be fixed?

Otherwise the 'find slot' acitivity will be less used.

0 Likes
25 Views
6 Replies
Replies (6)
Message 2 of 7

moehlmann_fe
Observer
Observer

What query are you using in 'Find Slot?'

If you are using the address scheme to find a specific slot it is significantly faster to use 'Storage.system.getSlot()' to look up the slot based on an address string.

If you are using slot labels, indexing them should also speed up the query considerably.

Message 3 of 7

supportPHJ4A
Observer
Observer

There are four conditions in the query, and the address is not sure.

So we cannot use the getSlot method.


0 Likes
Message 4 of 7

supportPHJ4A
Observer
Observer

At the same time, during the test, we found that using WHERE judgment will not affect the speed, but using ORDER sorting will cause the speed to slow down and freeze. Is there a good solution or improvement? Thanks.

0 Likes
Message 5 of 7

moehlmann_fe
Observer
Observer
Other than the obvious way of trying to reduce the number of values that have to be sorted, I don't know if/how that could be sped up.
0 Likes
Message 6 of 7

jason_lightfootVL7B4
Autodesk
Autodesk
You could try using lists with partitioning to see if that's any quicker - the partitioning might speed up the sort if you have many entries.

You could also try using maps.

0 Likes
Message 7 of 7

andrew_o2
Not applicable

Hi @CSN,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes