Heat 1/2 cup of the oil in a skillet over medium-low heat. Saute' the onions and garlic with the salt until soft but not brown, 5 to 7 minutes. Set aside to cool 10 minutes.
Transfer the onion mixture to a bowl. Add the remaining ingredients and mix well. The compote can be refrigerated overnight. Serve with roasted or grilled fish.