# Creating multiple objects at a time, the RESTful way?

**URL:** <https://www.ruby-forum.com/t/creating-multiple-objects-at-a-time-the-restful-way/143457>\
**Category:** Rails\
**Created:** [July 18, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/creating-multiple-objects-at-a-time-the-restful-way/143457 "2008-07-18T20:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Graff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@M\_Graff](https://www.ruby-forum.com/u/M_Graff)\
**Post date:** [July 18, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/creating-multiple-objects-at-a-time-the-restful-way/143457/1 "2008-07-18T20:25:51Z")

</div>

Most resources seem to be singletons – that is, the “create” action  
only creates one object. However, for a log parsing application I am  
writing, I would like to issue one large HTTP request to generate  
multiple objects at a time. This is purely for efficiency – I may be  
creating 100,000 items for each log I process, and I would rather do  
100 posts of 1000 items than 100,000 of them.

Does anyone have suggestions or sample code for this sort of thing, in  
a RESTful way? I know I can write a custom action (create\_multiple or  
something) but if there is a convention, I’d rather use it.

Thanks!

–Michael
