function ensureIndexesForDataset(datasetId) {
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'uid': 1}, {});
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'refs': 1}, {});
  createIndexForCollection(require('./sync-updates').getDatasetUpdatesCollectionName(datasetId), {'cuid': 1, 'hash': 1}, {});
}
function ensureIndexesForDataset(datasetId) {
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'uid': 1}, {});
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'refs': 1}, {});
  createIndexForCollection(require('./sync-updates').getDatasetUpdatesCollectionName(datasetId), {'cuid': 1, 'hash': 1}, {});
}
function ensureIndexesForDataset ( datasetId ) { createIndexForCollection ( getDatasetRecordsCollectionName ( datasetId ) , { 'uid' : 1 } , { } ) ; createIndexForCollection ( getDatasetRecordsCollectionName ( datasetId ) , { 'refs' : 1 } , { } ) ; createIndexForCollection ( require ( './sync-updates' ) . getDatasetUpdatesCollectionName ( datasetId ) , { 'cuid' : 1 , 'hash' : 1 } , { } ) ; }
Create all the indexes on the collections for a given dataset
@param {String} datasetId
Create all the indexes on the collections for a given dataset