vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Variable IndexOptions.background

Specifying true directs MongoDB to build the index in the background. Background builds do not block operations on the collection. Since MongoDB 4.2 indices are built on the background by default. In MongoDB 4.0 and before, this defaults to false.

struct IndexOptions
  // ...
  std.typecons.Nullable!(bool) background ;
  // ...

Jan Jurzitza


© 2020-2022 Jan Jurzitza


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.