On Sunday, January 6, 2013 10:58:28 AM UTC-6, Brandt Lofton wrote:

> After reading some more source and docs, I don't think Sequels 
> :commit_every or :slice options are going to help me out.
>
> I'm thinking I'm going to need two models for the table I'm writing to. 
>  One for bulk, and one for individual inserts, 
> with appropriate after_commit and after_rollback hooks.
>
> Again, feel free to shoot me down if I'm on the wrong path!
>
>
We have a similar problem but need to stop loading on failure and log the 
offending record. Since we have to do this for many different models we 
created a module and extend model classes with it. See 
https://gist.github.com/4486629. Instead of raising an exception on single 
insert failure you could insert the id of the bad row into another table 
for later processing. 

Rohit

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/6zjrXNGJpvcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to