active_record_upsert icon indicating copy to clipboard operation
active_record_upsert copied to clipboard

bulk processing and define fields with upsert instead of class

Open goravbhootra opened this issue 6 years ago • 1 comments

Hi,

We are working on doing bulk data import and are looking for a library supporting upsert. Trying to understand how we can:

  1. Upsert bulk array of hashes

  2. Define the conflict clause while doing .upsert rather than defining it it class. Different combination of data needs to figure out duplicates on different keys.

Thanks in advance.

goravbhootra avatar Jun 05 '18 22:06 goravbhootra

Try https://github.com/zdennis/activerecord-import

tjwallace avatar Jan 23 '19 20:01 tjwallace

PR welcome, but the maintainers won't develop this functionality.

jesjos avatar Nov 19 '22 15:11 jesjos