No support for that right now.

The support would need to start at the Adapter. Which should be fairly
easy. Then we'd need to figure out what the higher level interface
would be. Probably something like: Collection.new(entries).save

-Sam

On Sep 15, 10:22 pm, Brad S <[EMAIL PROTECTED]> wrote:
> Is it possible to do a bulk insert of many items with DataMapper?  I'm
> processing a huge log file, and I'd like to process a couple thousand
> entries and insert them into the database all at the same time.  I
> envision something like
>
> entries = []
> 1000.times { entries << SomeKindOfDataMapperClass.new(...) }
> entries.save_all
>
> -or-
>
> SomeKindOfDataMapperclass.save_all(entries)
>
> Any thoughts?
>
> Cheers
> --Brad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to