Initialization VS Update in SAP Commerce [Hybris]

In this article, I will explain the detailed differences between System Initialization and Update process.

SAP Commerce includes a built-in initialization process that first removes all existing database content, performs several required steps in the background, and then leaves the system in a predefined state. In addition, an Update only applies the requested changes and deploys the most recent changes to the database.

In the following discussion, I will explain the detailed differences between System Initialization and System Update.


Initialization:

When you perform system initialization, the following actions are carried out:

  • It removes all the existing data in the DB.
  • It drops all the existing schemas and tables [i.e. existing type definitions defined in items.xml file] from the DB.
  • It will recreate the schemas and tables in DB.
  • It reloads the data into the database.
  • All the data available in DB will be lost after initialization.

We can Initialize SAP Commerce either from command line using ant initialize command, or using SAP Commerce Administration console [HAC] as shown below:

    Initialize system using Command line:


    Initialize system from SAP Commerce Administration console [HAC]:



Update:

When you perform system update, the system does the following:

  • It reads all the type definitions defined in item.xml file. 
  • It will just modify the changes requested and will not clear any existing schemas or tables.

We can Update SAP Commerce either from command line using ant updatesystem command, or using SAP Commerce Administration console [HAC] as shown below:

    Update system using Command line:

    Update system from SAP Commerce Administration console [HAC]:


Note: In generally we do system Update frequently as it takes less time and faster than Initialization. And System initialization can be performed only once at the time of Hybris setup or in some specifical cases for example when database is corrupted.


Happy Learning๐Ÿ™‚๐Ÿ™‚๐Ÿ™‚





Comments

Popular posts from this blog

Type System in SAP Commerce [Hybris]

Differences between Extension and AddOn in SAP Hybris

items.xml in SAP Commerce [Hybris]