Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-43085

Need a way to collect CBO stats for all indexes for a collection, and for a scope

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Cheshire-Cat
    • query
    • 1

    Description

      Stats has to be collected per index. This can be also achieved with a sub query 

      UPDATE STATISTICS FOR <collection> INDEX((SELECT RAW name from system:indexes 
          WHERE state=‘online’ AND keyspace_id=‘<collection_name>’ AND bucket_id=‘<bucket_name>’ AND scope_id=‘<scope_name>’ AND `using`='gsi'))

      We should allow users to issue: 

      UPDATE STATISTICS FOR <collection>;

      UPDATE STATISTICS FOR <scope> ;

       

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              bingjie.miao Bingjie Miao
              binh.le Binh Le
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty