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 589051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:22:59+00:00 2026-05-13T15:22:59+00:00

I am doing a one-way data transfer app from MS Access to a Rails

  • 0

I am doing a one-way data transfer app from MS Access to a Rails app. I keep the Rails app restful, so I tell my colleague that the Access app needs to keep track of whether or not a record is already sent over to the Rails app because the Access app will need the ID of that record in the Rails app to do “update”. He doubted it was necessary as, if, for example, Access sends a record to the Rails Person model with the Access app’s person model ID, let’s call it AID, so if the Rails app “sees” incoming “:name => ‘John Doe’, :aid => 123”, and finds no such Person model with ‘AID’ equal to 123, then Rails should just create it, and when it does find a Person model with ‘AID’ equal to 123, then update it.

I told him that the design is restful and it is a ‘good thing’ to keep two separate calls (one with post and one with put); the one with ‘put’ needs the ID of the record which the call is about to update.

But he has some good point, why do we differentiate create and update but not merge it in one method in which a check of whether or not the record is already there can determine if it’ll be a creation or an update?

Thank You!

  • 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-13T15:22:59+00:00Added an answer on May 13, 2026 at 3:22 pm

    While in many cases you might not need to care about the difference, Create and Update are fundamentally different concepts.

    There are many cases it would be fatal to blindly update (and thus overwrite) a record, when a Create would have failed because a duplicate id was found.

    If that is not the case with your app, and never will be in the future, I’d say it might actually be fine to merge create and update – or perhaps keep the create and update mehods but provide a 3. api which does does both.

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

Sidebar

Related Questions

I have one console app that is doing some lengthy syncing to an ftp
Once again one of those: Is there an easier built-in way of doing things
Some people have suggested that when doing an estimate one should make a lower
This one is a case of not doing your homework.:-) Apart from dynamic loading
One thing I've started doing more often recently is retrieving some data at the
I am very new to grails.I am doing one sample project for image uploading
I'm about to start a project where I will be the only one doing
One of the things I'm doing includes several links on the show view. For
I'm used to doing all my coding in one C file. However, I'm working
I've been doing code review (mostly using tools like FindBugs) of one of our

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.