Reassign Zingg ID
Preserve Zingg IDs when switching to a new trained model or migrating infrastructure without disrupting downstream systems.
When you evolve your Zingg setup — upgrading your model, migrating infrastructure, changing data schemas, or moving to a new platform — you want to preserve the Zingg IDs already flowing through your production systems.
The reassignZinggId phase carries Zingg IDs from your original production model to a new model's output. It maps clusters from the new model back to the original cluster assignments and preserves the original Zingg IDs wherever clusters overlap. New IDs are generated only where no match is found.
When to use Reassign Zingg ID
How it works
The reassign phase compares two configurations:
Original configuration: your production model with established Zingg IDs.
New configuration: your updated model with improved features, new infrastructure, or schema changes.
The reassign phase then:
Identifies clusters in the new output that overlap with original clusters via primary key matching
Reassigns the original Zingg IDs to matching clusters wherever possible
Generates new Zingg IDs only when no match is found in the original clusters
Worked example
Original model (production): 4 records in a cluster, Zingg ID = ZID-7f3a. Records: A, B, C, D.
New model (upgraded): 6 records in the equivalent cluster. Records: A, B, C, D, E, F (E and F are new records added since the last full match).
After reassignZinggId:
Records A, B, C, D →
ZID-7f3a(Zingg ID from the original output preserved via primary key overlap)Records E, F →
ZID-9b2c(new Zingg IDs generated for records with no match in the original)
Downstream systems that reference ZID-7f3a continue to work without any change.
Step 1: Define the original (baseline) configuration
Set up EArguments matching your existing production model. This is the model whose Zingg IDs you want to preserve.
Add all field definitions from your original production config - only a few are shown above as a pattern.
Step 2: Define the new (updated) configuration
Set up EArguments for your new model. This is the model that produced the new cluster assignments which need Zingg IDs reassigned.
Add all field definitions from your new model config - only the structure is shown above.
Step 3: Run trainMatch on the new configuration first
The new model must produce its own match output before reassign can compare clusters.
Step 4: Create CompareArguments
CompareArguments wraps both configurations and the destination for the reassigned output.
Step 5: Execute reassignZinggId
Configuration wrapper (reassignConf.json)
The JSON wrapper config references your new model config and specifies the destination for the reassigned output.
--conf- the wrapper config (reassignConf.json) that references your new model--originalZinggId- your original production configuration--properties-file- optional Zingg properties file
The CLI command takes three arguments:
Configuration wrapper (reassignConf.json)
The JSON wrapper config references your new model config and specifies the destination for the reassigned output.
--conf- the wrapper config (reassignConf.json) that references your new model--originalZinggId- your original production configuration--properties-file- optional Zingg properties file
The CLI command takes three arguments:
Last updated
Was this helpful?