You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with one table of my database : duplicates.
For example if the table was 100 entities, i had 100 entities to import but with duplicates, meaning there were some entities lost in the process.
After investigation i realised those entities were duplicated because of the order method wasn't working, breaking in the same time the batching algorithm.
That's why i forked the project and replaced line 8 in enumeration.rb : records.order("#{records.quoted_table_name}.#{records.quoted_primary_key} ASC")
by records = records.order(records.primary_key => :asc)
I hope this helps someone
The text was updated successfully, but these errors were encountered:
I encountered an issue with one table of my database : duplicates.
For example if the table was 100 entities, i had 100 entities to import but with duplicates, meaning there were some entities lost in the process.
After investigation i realised those entities were duplicated because of the order method wasn't working, breaking in the same time the batching algorithm.
That's why i forked the project and replaced line 8 in enumeration.rb :
records.order("#{records.quoted_table_name}.#{records.quoted_primary_key} ASC")
by
records = records.order(records.primary_key => :asc)
I hope this helps someone
The text was updated successfully, but these errors were encountered: