Skip to content
代码片段 群组 项目
  • Moaz Khalifa's avatar
    692b65dc
    Replace DB unique index with model validator · 692b65dc
    Moaz Khalifa 创作于
    The DB unique index in packages_nuget_symbols table cannot be aware of the package's status. However, we need to only validate the uniqueness if the  package is installable. So we decided to remove the DB index and do the uniqueness validation on the application level to have access to the package's status. We can tolerate a few duplicates in the table if something escaped the model validation due to some race conditional, which isn't likely to happen.
    
    Changelog: fixed
    692b65dc
    历史
    Replace DB unique index with model validator
    Moaz Khalifa 创作于
    The DB unique index in packages_nuget_symbols table cannot be aware of the package's status. However, we need to only validate the uniqueness if the  package is installable. So we decided to remove the DB index and do the uniqueness validation on the application level to have access to the package's status. We can tolerate a few duplicates in the table if something escaped the model validation due to some race conditional, which isn't likely to happen.
    
    Changelog: fixed
代码所有者
20241217093056 64 B