Open antmoth opened 5 years ago
I have a situation where three of my records have a job_id that doesn't exist, and no idea how they got that way:
> db.record.find( { job_id : 7 } ).count() 3 > db.record.find( { job_id : 8 } ).count() 0 > db.record.find( { job_id : 6 } ).count() 657 > db.record.find( { job_id : 5 } ).count() 995 > db.record.find( { job_id : 4 } ).count() 993 > db.record.find( { job_id : 3 } ).count() 2976 > db.record.find( { job_id : 2 } ).count() 969 > db.record.find( { job_id : 1 } ).count() 3644 > db.record.find( { job_id : 0 } ).count() 0
Pretty sure this is caused by deleting a Job from MySQL, which does not sync with mongo
I have a situation where three of my records have a job_id that doesn't exist, and no idea how they got that way: