VulnerabilitiesFeedback.where('issue_id IS NOT NULL').each_batchdo|relation|
timestamp=Time.now
issue_links=relation
.joins("JOIN vulnerability_occurrences vo ON vo.project_id = vulnerability_feedback.project_id AND vo.report_type = vulnerability_feedback.category AND encode(vo.project_fingerprint, 'hex') = vulnerability_feedback.project_fingerprint")