问题
I suppose it runs essentialdata.impex. I am not sure of the difference. Any inputs from hybris experts highly appreciated.
回答1:
Initalization:
- Droping old and create new empty system.
- Creating schema and type system.
- Reloading persistences
- Clearing cache.
- Initialize media storages.
- Setting licence.
- Restarting internals.
- Clearing hMc configuration from database.
- creating essential data.
- Localizing types and creating project data.
Updating
- Updating schema.
- Reloading persistences
- Clearing cache.
- Initialize media storages
- setting licence.
回答2:
Initialization drops existing type definitions from the database prior to rebuilding, so the entire type system is created from scratch. So during an initialization, type system definitions are created to match the type system definition in the items.xml files.
During an update, type system definitions are modified to match the new type system definition in the items.xml files.
During the initialization and update processes, the platform looks for ImpEx files in the /resources/impex folder. In particular:
- For essential data: The platform scans the /resources/impex folders for files with names that match the pattern essentialdata*.impex and imports the files during the essential data creation.
- For project data: The platform scans the /resources/impex folders for files with names that match the pattern projectdata*.impex and imports the files during the project data creation.
回答3:
In Update suppose you have done any change in attribute of items.xml then after update older will remain in table structure and newer will also create (it apply same for column also)
You need to intialize the system, only when you want to build the site from scratch or when you are creating new environemnt. like QA/Staging/Prod.
You will do system update - whenever you are making modifications to *items.xml file. like adding an itemtype or modifying existing item type or changing any restrictions etc..
来源:https://stackoverflow.com/questions/29936212/what-is-the-difference-between-system-initialization-and-update-in-hybris