vibe.d beta banner
get vibe.d
0.9.0

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
Copyright
License