Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5666

Support the creation of Clustered Collections

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.31.3
    • Affects Version/s: None
    • Component/s: Compass
    • None
    • 5
    • Iteration Yonkers, Iteration Zanzibar
    • Needed
    • Hide

      We'll need the clustered index documentation so we can link to it from the clustered index type in the list just like for other indexes.

      ie. something like one of these:

      SINGLE: 'https://docs.mongodb.org/manual/core/index-single/',
      COMPOUND: 'https://docs.mongodb.org/manual/core/index-compound/',
      UNIQUE: 'https://docs.mongodb.org/manual/core/index-unique/',
      BACKGROUND:
      'https://docs.mongodb.com/manual/core/index-creation/#index-creation-background',
      PARTIAL: 'https://docs.mongodb.org/manual/core/index-partial/',
      SPARSE: 'https://docs.mongodb.org/manual/core/index-sparse/',
      TTL: 'https://docs.mongodb.org/manual/core/index-ttl/',
      '2D': 'https://docs.mongodb.org/manual/core/2d/',
      '2DSPHERE': 'https://docs.mongodb.org/manual/core/2dsphere/',
      GEOHAYSTACK: 'https://docs.mongodb.org/manual/core/geohaystack/',
      GEOSPATIAL:
      'https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes',
      WILDCARD: 'https://docs.mongodb.com/manual/core/index-wildcard/',
      // TODO: add an entry for CLUSTERED once the docs become available
      // see https://jira.mongodb.org/browse/COMPASS-5760
      TEXT: 'https://docs.mongodb.org/manual/core/index-text/',
      HASHED: 'https://docs.mongodb.org/manual/core/index-hashed/',

      ------

      We need clustered indexes to be documented in current so we can remove the 5.3 from the URL:

      // TODO: change this link to remove v5.3 once clustered-collections is in current
      // see https://jira.mongodb.org/browse/COMPASS-5760
      const HELP_URL_CLUSTERED = 'https://www.mongodb.com/docs/v5.3/core/clustered-collections/';

      ------

      Not sure if we have documentation for compass itself somewhere, but from mongodb server 5.3 onwards and for now if the COMPASS_CLUSTERED_COLLECTIONS env var is set to true, the add collection modal has a new option for adding clustered collections.

      Show
      We'll need the clustered index documentation so we can link to it from the clustered index type in the list just like for other indexes. ie. something like one of these: SINGLE: 'https://docs.mongodb.org/manual/core/index-single/', COMPOUND: 'https://docs.mongodb.org/manual/core/index-compound/', UNIQUE: 'https://docs.mongodb.org/manual/core/index-unique/', BACKGROUND: 'https://docs.mongodb.com/manual/core/index-creation/#index-creation-background', PARTIAL: 'https://docs.mongodb.org/manual/core/index-partial/', SPARSE: 'https://docs.mongodb.org/manual/core/index-sparse/', TTL: 'https://docs.mongodb.org/manual/core/index-ttl/', '2D': 'https://docs.mongodb.org/manual/core/2d/', '2DSPHERE': 'https://docs.mongodb.org/manual/core/2dsphere/', GEOHAYSTACK: 'https://docs.mongodb.org/manual/core/geohaystack/', GEOSPATIAL: 'https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes', WILDCARD: 'https://docs.mongodb.com/manual/core/index-wildcard/', // TODO: add an entry for CLUSTERED once the docs become available // see https://jira.mongodb.org/browse/COMPASS-5760 TEXT: 'https://docs.mongodb.org/manual/core/index-text/', HASHED: 'https://docs.mongodb.org/manual/core/index-hashed/', ------ We need clustered indexes to be documented in current so we can remove the 5.3 from the URL: // TODO: change this link to remove v5.3 once clustered-collections is in current // see https://jira.mongodb.org/browse/COMPASS-5760 const HELP_URL_CLUSTERED = 'https://www.mongodb.com/docs/v5.3/core/clustered-collections/'; ------ Not sure if we have documentation for compass itself somewhere, but from mongodb server 5.3 onwards and for now if the COMPASS_CLUSTERED_COLLECTIONS env var is set to true, the add collection modal has a new option for adding clustered collections.

      When connected to Compass 6.0+,

       

      • the experience of creating collections with clustered indexes will be similar to the creation of Time Series collections, i.e. users will be able to specify the clusteredIndex options;
      • Clustered Collections will be visually identifiable in the sidebar, in the list of collections and in the collection view similarly to what we do with Time Series Collections
      • Clustered Indexes will be visually identifiable under the Index tab
      • add "Collection Created" telemetry event to track when collections are created from Compass and in particular when they have interesting properties like having a clustered index, being a time-series, etc.

       

      So basically:

      In the create collection modal, add a new checkbox for Clustered. Put the pill in the sidbar and list collections screen. Hilight the indexes (which unlike the ones for timeseries won't be hidden), add telemetry.

      See scope https://docs.google.com/document/d/1r_1BBIlfELnKBz5qAzzLDUB-BJfGrQKTS2TNHXu4DRg/edit#heading=h.b1os3ai9s8t3

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: