insert multiple rows in backendless V4

Hi,

I am having issues with a feature that was available in backendless V3: in that version performing a post request with this json



{


  "name":"Mama Mia Pizzeria",
  "cuisine":"Pizza",
  "locations": 
   [
     {
        "___class":"addresses",
       "streetAddress":"123 Main St",
       "city":"New York"
     },
{
        "___class":"addresses",
       "streetAddress":"123 Curch St",
       "city":"New York"
     }
   ]
}

would have eneded up with a creation of a new table named “addresses” with 2 records inside, but this is not happening in backendless V4.

Why? Isn’t it supported anymore?

Thank you

Backendless 4 changed how relation management (create/update/delete) works. If you use REST API, here’s the doc about the differences:

https://backendless.com/docs/rest/doc.html#related_objects

Mark

I read it.

What then if I need to insert multiple rows at once in a table? I have to insert the rows one by one and at the end set the relation on the parent table? Please tell me that is there another way :slight_smile:

If you use the API, then you need to save multiple objects individually. Alternatively, you can import the data from a CSV.

Regards,
Mark

I think it’s a very big step backward !!! Saving multiple rows is a so common operation in any kind of app, can’t be so complicated !!!

I am sorry you feel this way. We have analyzed behavior of multiple (very different) apps before we made that change. The change is needed in order to allow better scalability of the service.

I see. Are you planning to keep your V3 alive in the future or your plan is to shutdown V3 soon or late?

We will continue running v3 since there are paying customers on that backend. Those apps will stay. Apps on the free plan on v3 will have to either migrate to v4 or upgrade to a paid plan.

Ok, so even if I will be the only one paying user on V3 it will remain up and running?

Yes