I'm creating a new data entity from standard PurchPurchaseOrderLineV2Entity, with 10+ virtual fields that are assigned values in postLoad() method.
The new method added has some select / while select query written to select the column lists required, and index hint is used as well.
I have around 400K records, export the standard (PurchPurchaseOrderLineV2Entity) data entity quite slow but still can complete, but the new data entity is not. There is no error, it is always in executing status. Count in SQL, staging is inserting records, about 100K after 4 hours.
My question is, what could be wrong to the new data entity ? Is virtual field a problem to the long running process ?