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