---
# System prepended metadata

title: Untitled

---

## Main steps

1. Get DSN data into Python Objects
    1. Some hierarchy is used
        1. We use company -> contract -> individuals
        2. We could flatten all this by individual 
    3. No assumtions are made about our contract
    4. The reference is the DSN data only
2. Process that aggregated DSN data
    1. Match our actual contracts
    2. 

Do that in parallel with `_run_parallel_dsn_synchronize`
* The processing phase uses it own DB session as it runs in a thread
* We're not limited by CIM concurrency limit for the processing of the aggregated data
* A lot of caching/indexing is duplicated per thread while we could share it