Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4098082
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:15:23+00:00 2026-05-20T20:15:23+00:00

I am doing multiple HTTP POST to a REST web service that I created.

  • 0

I am doing multiple HTTP POST to a REST web service that I created. This POST will then translate to an INSERT to a table in the database. The table has a column called ROUTE_ORDER (auto-incremented). This column preserves the order in which the POST was coming in (useful for some other parts of my application), it’s an int which has values of 1,2,3.. etc.

I tried to execute the HTTP POST using CURL of the entries one by one and it works perfectly fine. However I have a loop inside my XCode project, which iterates through an array an do a POST based on the content in the array and the order messed up. Below is the code:

for (Location * loc in [self.data objectForKey:@"route"])
         [[RKObjectManager sharedManager] postObject:loc delegate:self];

So my idea is to put a time interval between each iteration of the POST, so that the previous POST finishes first and then goes to the next one and therefore the ORDER is preserved. Question is how can I do this in objective-C? Is this even the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:15:23+00:00Added an answer on May 20, 2026 at 8:15 pm

    I would suggest, rather than making one request (which can potentially be really large (not sure about your scenario), you can still make multiple requests, but have an order parameter in the request which tells the server what the actual order of the request is, so the server can do behave accordingly

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a hlookup against a value that spans multiple columns. My data is
When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field)
When doing TDD , how to tell that's enough tests for this class /
In wiki article for REST it is indicated that if you use http://example.com/resources DELETE,
I'm using this piece of code I found ( http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage ) to display the
I'm working on a .Net applications with multiple threads doing all sorts of things.
Is it possible to implement batching of multiple stored procedure calls (doing updates/deletes) in
I'm doing a personal number-crunching project, and I'd like to launch multiple programs on
Doing odd/even styling with jQuery is pretty easy: $(function() { $(.oddeven tbody tr:odd).addClass(odd); $(.oddeven
When doing small icons, header graphics and the like for websites, is it better

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.