Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(playground): makes creation of columnstore indexes more visible in index creation template VSCODE-364 #479

Merged
merged 3 commits into from
Feb 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions src/templates/playgroundCreateIndexTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ db.getCollection('CURRENT_COLLECTION')
* Keys
*
* Normal index
* fieldA: 1, //ascending
* fieldB: -1 //descending
* fieldA: 1, // ascending
* fieldB: -1 // descending
*
* Wildcard index
* '$**': 1, //wildcard index on all fields and subfields in a document
* 'path.to.field.$**': 1 //wildcard index on a specific field and its subpaths
* '$**': 1, // wildcard index on all fields and subfields in a document
* 'path.to.field.$**': 1 // wildcard index on a specific field and its subpaths
*
* Columnstore index
* '$**': 'columnstore', // columnstore index on multiple specific field
* 'path.to.field.$**': 'columnstore', // columnstore index on one field and all the subfields
*
* Text index
* fieldA: 'text',
Expand All @@ -33,13 +37,15 @@ db.getCollection('CURRENT_COLLECTION')
/*
* Options (https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types)
*
* background: true, //ignored in 4.2+
* background: true, // ignored in 4.2+
* unique: false,
* name: 'some name',
* partialFilterExpression: {},
* sparse: false,
* expireAfterSeconds: TTL,
* collation: {}
* collation: {},
* wildcardProjection: {},
* columnstoreProjection: {} // added in MongoDB 6.3
*/
}
);
Expand Down