vibe.d beta banner
get vibe.d
0.10.1

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 ;
  // ...
}
Authors

Jan Jurzitza

Copyright

© 2020-2022 Jan Jurzitza

License

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