SQL Server Index and Statistics Maintenance performance question The 2019 Stack Overflow...

What does ひと匙 mean in this manga and has it been used colloquially?

How to save as into a customized destination on macOS?

How to deal with fear of taking dependencies

Identify boardgame from Big movie

Falsification in Math vs Science

What is the meaning of Triage in Cybersec world?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Reference request: Oldest number theory books with (unsolved) exercises?

Is an up-to-date browser secure on an out-of-date OS?

Loose spokes after only a few rides

Can we generate random numbers using irrational numbers like π and e?

Can a flute soloist sit?

A poker game description that does not feel gimmicky

Pokemon Turn Based battle (Python)

Why are there uneven bright areas in this photo of black hole?

Is flight data recorder erased after every flight?

Worn-tile Scrabble

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Why is the Constellation's nose gear so long?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

What is the accessibility of a package's `Private` context variables?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Aging parents with no investments



SQL Server Index and Statistics Maintenance performance question



The 2019 Stack Overflow Developer Survey Results Are Inola hallengren Index Maintenance script - GUID IndexIndex maintenance Azure SQLQuery Performance | Update Statistics | Ola Hallengren SPsHow to maintain Index and Statistics on AWS RDS?Ola Index and Update statsSQL Maintenance script not running with SQL Server ExpressIndex Maintenance for DW- DB ( ETL process )Ola Hallengren Index Maintenance with compressed indexesIndex Maintenance - Reorganize After BIG SQL Server ShrinkIndex Maintenance with Ola starting from day x (7 or 9) till the end of month





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I tried to use IndexOptimize stored procedure on a database with a very high number of indexes (> 250.000). The initial step where stored procedure collects data what needs to be processed takes hours, even if I set @Indexes parameter to narrow down the work.




SQL Server Maintenance Solution Version: 2019-02-10 10:40:47 SQL
Server 2017 Standard Edition with latest CU14 installed.




At a customer I saw a database with > 500.000 indexes. After 12 hours data collection step was still running.



I would expect if I set @Indexes to a single index execution should be started immediately.



Here is an example of my stored procedure call.



EXECUTE dbo.IndexOptimize
@Databases = 'db',
@Indexes = 'db.dbo.'
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 30,
@FragmentationLevel2 = 50,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@LogToTable = 'Y',
@LockTimeout = 60


Can somebody share with me his experience in using IndexOptimize for a database with a very high number of indexes ?









share









New contributor




Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I tried to use IndexOptimize stored procedure on a database with a very high number of indexes (> 250.000). The initial step where stored procedure collects data what needs to be processed takes hours, even if I set @Indexes parameter to narrow down the work.




    SQL Server Maintenance Solution Version: 2019-02-10 10:40:47 SQL
    Server 2017 Standard Edition with latest CU14 installed.




    At a customer I saw a database with > 500.000 indexes. After 12 hours data collection step was still running.



    I would expect if I set @Indexes to a single index execution should be started immediately.



    Here is an example of my stored procedure call.



    EXECUTE dbo.IndexOptimize
    @Databases = 'db',
    @Indexes = 'db.dbo.'
    @FragmentationLow = NULL,
    @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
    @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
    @FragmentationLevel1 = 30,
    @FragmentationLevel2 = 50,
    @UpdateStatistics = 'ALL',
    @OnlyModifiedStatistics = 'Y',
    @LogToTable = 'Y',
    @LockTimeout = 60


    Can somebody share with me his experience in using IndexOptimize for a database with a very high number of indexes ?









    share









    New contributor




    Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I tried to use IndexOptimize stored procedure on a database with a very high number of indexes (> 250.000). The initial step where stored procedure collects data what needs to be processed takes hours, even if I set @Indexes parameter to narrow down the work.




      SQL Server Maintenance Solution Version: 2019-02-10 10:40:47 SQL
      Server 2017 Standard Edition with latest CU14 installed.




      At a customer I saw a database with > 500.000 indexes. After 12 hours data collection step was still running.



      I would expect if I set @Indexes to a single index execution should be started immediately.



      Here is an example of my stored procedure call.



      EXECUTE dbo.IndexOptimize
      @Databases = 'db',
      @Indexes = 'db.dbo.'
      @FragmentationLow = NULL,
      @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
      @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
      @FragmentationLevel1 = 30,
      @FragmentationLevel2 = 50,
      @UpdateStatistics = 'ALL',
      @OnlyModifiedStatistics = 'Y',
      @LogToTable = 'Y',
      @LockTimeout = 60


      Can somebody share with me his experience in using IndexOptimize for a database with a very high number of indexes ?









      share









      New contributor




      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I tried to use IndexOptimize stored procedure on a database with a very high number of indexes (> 250.000). The initial step where stored procedure collects data what needs to be processed takes hours, even if I set @Indexes parameter to narrow down the work.




      SQL Server Maintenance Solution Version: 2019-02-10 10:40:47 SQL
      Server 2017 Standard Edition with latest CU14 installed.




      At a customer I saw a database with > 500.000 indexes. After 12 hours data collection step was still running.



      I would expect if I set @Indexes to a single index execution should be started immediately.



      Here is an example of my stored procedure call.



      EXECUTE dbo.IndexOptimize
      @Databases = 'db',
      @Indexes = 'db.dbo.'
      @FragmentationLow = NULL,
      @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
      @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
      @FragmentationLevel1 = 30,
      @FragmentationLevel2 = 50,
      @UpdateStatistics = 'ALL',
      @OnlyModifiedStatistics = 'Y',
      @LogToTable = 'Y',
      @LockTimeout = 60


      Can somebody share with me his experience in using IndexOptimize for a database with a very high number of indexes ?







      ola-hallengren





      share









      New contributor




      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 7 secs ago









      EzLo

      2,8151621




      2,8151621






      New contributor




      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      Joerg RueschenschmidtJoerg Rueschenschmidt

      1




      1




      New contributor




      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Joerg Rueschenschmidt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          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
          });


          }
          });






          Joerg Rueschenschmidt is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f234520%2fsql-server-index-and-statistics-maintenance-performance-question%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








          Joerg Rueschenschmidt is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Joerg Rueschenschmidt is a new contributor. Be nice, and check out our Code of Conduct.













          Joerg Rueschenschmidt is a new contributor. Be nice, and check out our Code of Conduct.












          Joerg Rueschenschmidt is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Database Administrators 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%2fdba.stackexchange.com%2fquestions%2f234520%2fsql-server-index-and-statistics-maintenance-performance-question%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

          ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

          Always On Availability groups resolving state after failover - Remote harden of transaction...

          Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...