This is where the upsert starts, and the most important thing to have a look at.