on 02-08-2019 8:33 PM
I have overriden beforeconvert method and deleting all the records,but it is creating a plain impex.csv file in processing folder and then it is taking couple of hours to delete and process the new data.
any suggestions will be highly appreciated
Add the below lines before your feed impex header
<bean id="batchEmptyItemDateBeforeFeed"
class="de.hybris.platform.acceleratorservices.dataimport.batch.converter.impl.DefaultImpexConverter">
<property name="header">
<value>
$targetType=yourItemTypeName
REMOVE $targetType[batchmode=true];itemtype(code)[unique=true]
;$targetType
</value>
</property>
</bean>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think we have the staged version for items except the catalog aware items. In case you want to remove the catalog aware items, modify header something like below
REMOVE $targetType[batchmode=true];itemtype(code)[unique=true]; catalog [version='staged']
P.S: This is just a rough idea. please prepare the header correctly 🙂
you can use this header to remove all data from table in bulk
REMOVE MyItem[batchmode=true];itemType(code)[unique=true] ;MyItem
All instances of this type match the criteria, and batchmode=true executes it for all data rows (so unique key has not to be unique)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.