Compote is similar to jam, with few differences. The overall process of making jam is a bit more involved. While the jam is made to last several months once opened, compote cannot be preserved. It usually lasts for up to 10 days and not beyond that.