Save incrementing IDWhat parts of the model layer can be bypassed in the interest of performance...

If I delete my router's history can my ISP still provide it to my parents?

Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?

Publishing research using outdated methods

Porting Linux to another platform requirements

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

How can animals be objects of ethics without being subjects as well?

How to prevent cleaner from hanging my lock screen in Ubuntu 16.04

What is the wife of a henpecked husband called?

Does paint affect EMI ability of enclosure?

Word or phrase for showing great skill at something WITHOUT formal training in it

Are there any modern advantages of a fire piston?

How should I handle players who ignore the session zero agreement?

How can I deliver in-universe written lore to players without it being dry exposition?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Pronunciation of umlaut vowels in the history of German

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

Can I become debt free or should I file bankruptcy ? How to manage my debt and finances?

Citing paywalled articles accessed via illegal web sharing

Why zero tolerance on nudity in space?

Why has the mole been redefined for 2019?

Why exactly do action photographers need high fps burst cameras?

Why avoid shared user accounts?

Writing a character who is going through a civilizing process without overdoing it?

Cookies - Should the toggles be on?



Save incrementing ID


What parts of the model layer can be bypassed in the interest of performance optimizationone-to-one relationshipsFaster Way to Assign Products to CategoriesTimezone issues when saving new modelModel Not Saving to DatabaseIs there ever a reason to prefer $model->load() over service contracts?Magento 2 : The proper way to read/save entitiesMagento 2 - Collection on custom table problemWhat and why is the proper way to load a modelProduct List Toolbar for Wishlist













0















I need to save a increment ID, but figured creating a new custom table with Collection, Repository and Model would be quite the overhead. Second option would be the use of the config, but then i have the problem that the ID will be cached.



The ID is being used for API calls and needs to increment after each call.




Is there another option to save this ID or should i just create a
Model along with Collection and Repository?











share|improve this question





























    0















    I need to save a increment ID, but figured creating a new custom table with Collection, Repository and Model would be quite the overhead. Second option would be the use of the config, but then i have the problem that the ID will be cached.



    The ID is being used for API calls and needs to increment after each call.




    Is there another option to save this ID or should i just create a
    Model along with Collection and Repository?











    share|improve this question



























      0












      0








      0








      I need to save a increment ID, but figured creating a new custom table with Collection, Repository and Model would be quite the overhead. Second option would be the use of the config, but then i have the problem that the ID will be cached.



      The ID is being used for API calls and needs to increment after each call.




      Is there another option to save this ID or should i just create a
      Model along with Collection and Repository?











      share|improve this question
















      I need to save a increment ID, but figured creating a new custom table with Collection, Repository and Model would be quite the overhead. Second option would be the use of the config, but then i have the problem that the ID will be cached.



      The ID is being used for API calls and needs to increment after each call.




      Is there another option to save this ID or should i just create a
      Model along with Collection and Repository?








      magento2.2 api model increment-id






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 53 mins ago









      Muhammad Hasham

      2,0141424




      2,0141424










      asked Apr 11 '18 at 15:13









      CeloainCeloain

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f221939%2fsave-incrementing-id%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f221939%2fsave-incrementing-id%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...