Skip to content

Glossary: Spring Boot Beyond the Basics

ON CONFLICT DO NOTHING

Also written: upsert, ON CONFLICT

A PostgreSQL insert clause that skips the insert, without an error, if a row with the same key exists. `recordAward` uses it so each order awards points only once.

Where the book teaches it

Related terms

@QueryIdempotent