I was wondering why, when using Peewee at least, UPSERT does DELETE and INSERT rather than UPDATE when the entry is already in the table?
Is there any reason for which it would be preferable to "DELETE then INSERT" rather than "try UPDATE otherwise INSERT"?
Is UPDATE more time-expensive than DELETE & INSERT? Or is UPSERT really meant as an INSERT(force=True) query?