3 ms·
there would be data loss if the insert/update would meet a collision and either decided to overwrite the record or to report the operation as already completed
by afiori 5y ago
there would be data loss if the insert/update would meet a collision and either decided to overwrite the record or to report the operation as already completed (the latter is what I imagine git would do for a collision scenario).
the solution might as well just be not to care about this case (no sarcasm).
- nextaccountic 5y agoBut if we're talking about a database insert and there's a collision (and the uuid column has an unique constraint - as it should, since it's meant to be a primary key), then the insert will not be successful. Your application might not care about treating this error, but the DB will report it.