Put the oil in a pan with a finely sliced ​​onion. put the pan on a fire weak and when the onion is slightly wilted, add the bacon cut into small cubes and fry a few minutes with white wine and let it evaporate. Then add the tomatoes and a handful of grated pecorino cheese, season with salt and olive oil and cook for fifteen minutes. Cook the spaghetti in plenty of lightly salted water, drain and toss with the sauce finishing with pecorino cheese and grated parmesan cheese.