active_record_upsert
active_record_upsert copied to clipboard
bulk processing and define fields with upsert instead of class
Hi,
We are working on doing bulk data import and are looking for a library supporting upsert. Trying to understand how we can:
-
Upsert bulk array of hashes
-
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.
Try https://github.com/zdennis/activerecord-import
PR welcome, but the maintainers won't develop this functionality.