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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:59:55+00:00 2026-05-29T05:59:55+00:00

When submitting a feed via Amazon MWS API it returns a feed submission ID

  • 0

When submitting a feed via Amazon MWS API it returns a feed submission ID which is typed as string, while all the figures it returns seem to be of type int.

Question: is there a reason they have it as string and is it safe to always convert this value to int (I mean may I be sure they won’t add a letter to that ID like “123abc”).

Reason for the question: how to store the value in the database: char(), varchar() or int? I suppose we can expect this ID to have more length eventually, since the ID is incremented. Thus char() won’t work. Next, varchar(how_long?) – currently the ID is 10 chars long – add some extra room to it (say varchar(15))? Or maybe just use int – will be faster in search and accommodate the ID until it grows to a bigint (if ever), or just make it bigint and final?

This is the dilemma.

  • 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-29T05:59:56+00:00Added an answer on May 29, 2026 at 5:59 am

    is there a reason they have it as string and is it safe to always convert this value to int

    I would not convert this value to an int unless you plan on using it mathematically.

    (I mean may I be sure they won’t add a letter to that ID like “123abc”).

    You can never be sure of this. This is an identifier and it is completely possible that they will start adding non-numeric characters to it in the future.

    I am not a database expert so I can not really advise you as to what the best types are for certain scenarios. One thing that will hold true is that you will not be able to tell which is faster or more efficient until you benchmark your application.

    My recommendation is to store the value as a varchar(25) which will give you plenty of space for the future. I would also advise you to focus more on the maintainability of your application than on the performance or efficiency.

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

Sidebar

Related Questions

I am submitting HTTP POST requests via HttpWebRequest which contain a large amount of
Ok I'm submitting a form via ajax. The result string is a bunch of
hudson supports submitting a build by doing an HTTP GET to an API. I
I have a form I am submitting via AJAX (using prototype and the built-in
I have a Django app which, submitting a package, should return values that are
When submitting SAS code via the SAS Toolbar (eg cmjohns response ) the compiler
I am submitting from a form to another php page which is supposed to
While submitting my changes this error popped up from AnkSvn: SharpSvn.SvnException: Commit failed (details
I am submitting a form via jquery form submit. just like this example However,
I am submitting some form data via ajax and getting back a JSON array

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.