The old API defined a unique field as follows:
_sql_constraints = [
('cne_unique', 'unique(cne)', 'cne already exists!')
]
The new API deprecates this, and recommends to use @api.constrains, but how can I code to check for uniqueness in an efficient way?