Method EnsureIndexes
EnsureIndexes()
Ensures that the proper indexes for GridFS exist (only creates the new indexes if there are fewer than 1000 GridFS files).
public void EnsureIndexes()
EnsureIndexes(int)
Ensures that the proper indexes for GridFS exist.
public void EnsureIndexes(int maxFiles)
Parameters
maxFiles
intOnly create new indexes if there are fewer than this number of GridFS files).