Issue tracking for project migrating FreeCEN to FreeCEN2 genealogy record database and search engine architecture. Code developed here is based on that developed in MyopicVicar
Yes there are 2 copies of each search record for each csv_entry. Their creation times show their creations were separated by 2 minutes 32 seconds
Looking at the mail log it is clear Chris was sent 2 incorporation messages separated by just over a minute.
I, [2021-07-20T07:57:39.744137 #81172] INFO -- : #<Mail::Message:17355859380, Multipart: false, Headers: <Date: Tue, 20 Jul 2021 07:57:39 +0100>, <From: FreeCEN Servant freecen-contacts@freecen.org.uk>, <To: Chris cmahoney@orcon.net.nz>, <Message-ID: 60f673e3ae050_13d144005ea2788023c@colobus.freebmd.org.uk.mail>, , <Mime-Version: 1.0>, <Content-Type: text/html>, <Content-Transfer-Encoding: 7bit>>
I, [2021-07-20T07:58:30.938229 #81961] INFO -- : #<Mail::Message:17322844240, Multipart: false, Headers: <Date: Tue, 20 Jul 2021 07:58:30 +0100>, <From: FreeCEN Servant freecen-contacts@freecen.org.uk>, <To: Chris cmahoney@orcon.net.nz>, <Message-ID: 60f67416d7cef_140294005ea27822597@colobus.freebmd.org.uk.mail>, , <Mime-Version: 1.0>, <Content-Type: text/html>, <Content-Transfer-Encoding: 7bit>>
This likely means that the incorporation button was clicked twice.
Yes there are 2 copies of each search record for each csv_entry. Their creation times show their creations were separated by 2 minutes 32 seconds
Looking at the mail log it is clear Chris was sent 2 incorporation messages separated by just over a minute. I, [2021-07-20T07:57:39.744137 #81172] INFO -- : #<Mail::Message:17355859380, Multipart: false, Headers: <Date: Tue, 20 Jul 2021 07:57:39 +0100>, <From: FreeCEN Servant freecen-contacts@freecen.org.uk>, <To: Chris cmahoney@orcon.net.nz>, <Message-ID: 60f673e3ae050_13d144005ea2788023c@colobus.freebmd.org.uk.mail>,, <Mime-Version: 1.0>, <Content-Type: text/html>, <Content-Transfer-Encoding: 7bit>>
I, [2021-07-20T07:58:30.938229 #81961] INFO -- : #<Mail::Message:17322844240, Multipart: false, Headers: <Date: Tue, 20 Jul 2021 07:58:30 +0100>, <From: FreeCEN Servant freecen-contacts@freecen.org.uk>, <To: Chris cmahoney@orcon.net.nz>, <Message-ID: 60f67416d7cef_140294005ea27822597@colobus.freebmd.org.uk.mail>, , <Mime-Version: 1.0>, <Content-Type: text/html>, <Content-Transfer-Encoding: 7bit>>
This likely means that the incorporation button was clicked twice.
Find a way of double proceesing