Hi,
ok, now I could reproduce it. I had to add a replenish entry for 37000 existing products. I prepared four csv-files. Header:
"Value/KT","M_Replenish>M_Product_ID[Value]/KT","M_Replenish>M_Warehouse_ID[Value]/K","M_Replenish>IsActive","M_Replenish>ReplenishType","M_Replenish>Level_Min","M_Replenish>Level_Max","M_Replenish>QtyBatchSize"
running as merge. This produced a recentitem for each entry and for the second file took so long that the transaction for the import itself was aborted. I tried then with
"Value/K","M_Replenish>M_Product_ID[Value]/K","M_Replenish>M_Warehouse_ID[Value]/K","M_Replenish>IsActive","M_Replenish>ReplenishType","M_Replenish>Level_Min","M_Replenish>Level_Max","M_Replenish>QtyBatchSize"
which ran seamlessly. No additional recentitems. A third try with
"Value/KT","M_Replenish>M_Product_ID[Value]/K","M_Replenish>M_Warehouse_ID[Value]/K","M_Replenish>IsActive","M_Replenish>ReplenishType","M_Replenish>Level_Min","M_Replenish>Level_Max","M_Replenish>QtyBatchSize"
again produced recentitems.
All replenish entries didn't exist before.
After reloading the page where the import ran so that the connection to the window was broken, importing got much faster, I could see in another window the recentitems appearing much faster.
I didn't have a look at the source, but I assume, counting the actual present recentitems uses the session of the import while inserting them uses another session.
Regards,
Martin