阅读背景:

Rails如何在处理批量插入时忽略RecordNotUnique ?

来源:互联网 

I'm processing some xml data where there can happen to be some records which already got entered into the db. I solved that problem with a index on two columns, but know it happens to not entering any value (not even the unique ones) and just raise RecordNotUnique Exception. How can a tell the process that it should just not enter this record, but should go on, entering the next records of the xml file?I'm processing some xml data where there can ha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: