registry
registry copied to clipboard
Registry server: improve create entity validation and efficiency
This code does record validation after a query to see if the record exists - it would be better to reverse them and avoid the query in the error case. Better yet, I believe we can avoid the duplicate check entirely by using a DB "create" instead of "save" here.
Check other entities as this may also apply to entities other than artifacts.