Place the oil into the bottom of a large Dutch oven or saucepan and heat over medium-low. Add 2 teaspoons of turmeric, 2 teaspoons of granulated sugar, and ½ teaspoon of salt into the oil and stir. Gently place all the tomatoes along the outer edge of the pan, with their top side down in one layer. Gently place the onions into the middle of the pan with their seam side down in the same layer as the tomatoes. Cover the pan with a lid and cook for 20 minutes. Uncover and sprinkle the remaining ½ teaspoon of salt over the tomatoes and onions. Cover and continue cooking for 15 to 25 more minutes until the filling is cooked through and the tomatoes and onions are tender.