on 2019 Jan 25 2:42 PM
Hi Experts,
Please advise the better approach to delete 2 billion records, Should i do it via IMPEX or Cronjob?
Request clarification before answering.
1. define a custom testingStockLevelCacheRegion
2. create a service to execute truncate table & clear cache.
void truncateTable() {
execute truncate table;
cacheRegionProvider.getRegionByName("testingStockLevelCacheRegion").forEach(e ->
{
e.clearCache();
});
}
2. execute that service method from header of hotfolder.
#% import de.hybris.platform.core.Registry
#% import com.service.TruncateService
#% TruncateService truncateService = Registry.getApplicationContext().getBean("truncateService")
#% truncateService.truncateTable()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
3 | |
2 | |
1 | |
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.