Hidde Braun
Posts: 0
Joined: Wed Aug 14, 2013 9:42 pm

How to batch insert multiple rows at once to a collection

Hi,

Is it possible to insert multiple rows at once?
I have an array of "answer" objects that i want to POST to my answers / collection.
To speed things up i think one request will be much nicer than 10...
What is the best practice for this scenario?

(sorry if this question has been asked before, i can;t seem to find anything about this in de the documentation)

kind regards, Hidde

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to batch insert multiple rows at once to a collection

Hello Hidde - are you using Appery.io database to store your collection?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to batch insert multiple rows at once to a collection

Right now you can insert (POST) one object at a time.

Hidde Braun
Posts: 0
Joined: Wed Aug 14, 2013 9:42 pm

How to batch insert multiple rows at once to a collection

Yes i'm using the Appery.io Database services.

Hidde Braun
Posts: 0
Joined: Wed Aug 14, 2013 9:42 pm

How to batch insert multiple rows at once to a collection

Thanks for your reply. Will this be possible in upcoming releases of Appery? If so, any idea when this functionality will be available?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to batch insert multiple rows at once to a collection

In the future yes. I don't have a date yet.

Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

How to batch insert multiple rows at once to a collection

Hi,

Just wondering if there is any update on allowing batch insert (POST) of an array of multiple objects into appery DB collection?

I see it is possible via mongoDB and wondering if Appery API will allow it now?

If not, is there any problem with batch inserting say 500 records/objects at a time in a loop on my server calling the ApperyDB POST API for each object in the loop that I want to insert into the ApperyDB?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to batch insert multiple rows at once to a collection

Hi Dave,

Sorry for the delay. It's not possible to define such service via the app builder right now. It has to be done in JavaScript. We'll write a code and update.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to batch insert multiple rows at once to a collection

Hi Dave,

For now, batch operations can be used from Appery.io builder only if Ajax call is specified via JavaScript.
If you provide some code samples, our developers will be able to help.

Return to “Issues”