Moving catalog nodes take very long time.

Vote:
 

We have an integration that handles the Commerce catalog structure.

When we try to move Catalog nodes within the structure it takes really long time to process (moving within the same catalog). Even if the node only have 4 child entries it still takes really long time (+10 min).

I have tried with contentRepository.Move, relationRepository.SetParentNode and the old classig catalogSystem.Save, same result with all.

Even if i try to move the node manually within commerce UI it still takes forever (the UI just keeps showing loading icon).

 

I investigated the debug logs for Episerver Commerce and it looks like it keeps looping entries endlessly.

I have tried disabling all catalog event listeners.

 

Any ideas on how to proceed with troubleshooting, or should I simply accept that moving nodes takes really long time?

#334081
Edited, Dec 09, 2024 15:13
Vote:
 

I would suggest to go with dotTrace to see if you can spot anything obvious. it could be that one of the entries has circular reference. 

you're welcome to contact developer support service for help. feel free to mention me and I'm happy to take a look 

#334083
Dec 09, 2024 16:03
Vote:
 

Thanks for your suggestions.

 

Currently I'm investigating if this is the issue:

This is our current Catalog structure:

Catalog
            -> RootCategory
                                       -> Category 1
                                                             -> Category 11
                                                             -> Category 12
                                                             -> Category 13
                                                             -> Category 14
                                       -> Category 2
                                                             -> Category 21
                                                             -> Category 22
                                                             -> Category 23
                                       -> Category xxxx...

It seems like when you move or delete anything below "RootCategory" then Optimizely starts loop everything.

Could that be the issue?

#334136
Dec 10, 2024 14:26
Vote:
 

Definitely something with the catalog structure. deletion is one of the test cases and I'm sure we can't get it release if it does not pass QA (i.e takes too long to delete)

#334137
Dec 10, 2024 14:48
Vote:
 

Turns out is was Find that was the issue. Temporary disabling EventIndexing for Find, while moving the node, solved the issue.

#334191
Dec 11, 2024 12:45
Vote:
 

Hi Daniel, whenever you create or delete anything find indexing kicks, it could be because of that.

#334245
Dec 12, 2024 16:37
Vote:
 

Yes, a bit strange that it locks the thread, I thought it should be handle in the background by another thread. The Find index is not that important in this case so I just switch the listener off while doing move or delete on nodes and then turn it back on again.

#334286
Dec 13, 2024 8:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.