cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove deployment tag for a subtype?

Former Member
0 Kudos

Hi, As per hybris it is not recommended to use deployment for subtypes.How to remove that?Can anyone help me with this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is because queries for the super type require a UNION clause which would potentially cause a massive performance bottleneck.

For a production environment, this is nontrivial as you'd have to write a data migration script in order to move existing data from the table defined in the deployment-tag over to the supertype's table. Afterwards you'd have to remove the deployment-tag from your *-items.xml and run a platform update.

Former Member
0 Kudos

Thanks for your reply, it is not in production yet.As of now it is having only test data how to fix it without initialization?

Former Member
0 Kudos

Hi. Just write an ImpEx export script. Export your data similar to this example:

 INSERT_UPDATE User; pk[unique=true]; uid[unique=true]; addresses(pk); name; password; 

You'll then be given a zip file containing an importscript for the same data. Afterwards, remove the deployment-tag from your items.xml file, update platform and re-import your previously exported data.

Answers (0)