_,err:=sess.Exec(`UPDATE repository SET lfs_size=(SELECT SUM(size) FROM lfs_meta_object WHERE lfs_meta_object.repository_id=repository.ID) WHERE EXISTS (SELECT 1 FROM lfs_meta_object WHERE lfs_meta_object.repository_id=repository.ID)`)
iferr!=nil{
returnerr
}
_,err=sess.Exec(`UPDATE repository SET git_size = size - lfs_size`)