Page 1 of 1
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 9:52 pm
by Hidde Braun
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
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 10:43 pm
by Illya Stepanov
Hello Hidde - are you using Appery.io database to store your collection?
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 10:43 pm
by maxkatz
Right now you can insert (POST) one object at a time.
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 11:11 pm
by Hidde Braun
Yes i'm using the Appery.io Database services.
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 11:12 pm
by Hidde Braun
Thanks for your reply. Will this be possible in upcoming releases of Appery? If so, any idea when this functionality will be available?
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 11:27 pm
by maxkatz
In the future yes. I don't have a date yet.
How to batch insert multiple rows at once to a collection
Posted: Wed Aug 14, 2013 11:36 pm
by Hidde Braun
)
How to batch insert multiple rows at once to a collection
Posted: Wed Apr 30, 2014 11:18 pm
by Dave Scott
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?
How to batch insert multiple rows at once to a collection
Posted: Tue May 06, 2014 1:06 pm
by Kateryna Grynko
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.
How to batch insert multiple rows at once to a collection
Posted: Mon May 12, 2014 1:16 pm
by Kateryna Grynko
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.