DatabaseOption

public enum DatabaseOption : UInt32

A set of options that can be set on a database.

  • Set the size of the client location cache. Raising this value can boost performance in very large databases where clients access data in a near-random pattern. Defaults to 100000.

    Declaration

    Swift

    case locationCacheSize = 10
  • Set the maximum number of watches allowed to be outstanding on a database connection. Increasing this number could result in increased resource usage. Reducing this number will not cancel any outstanding watches. Defaults to 10000 and cannot be larger than 1000000.

    Declaration

    Swift

    case maxWatches = 20
  • Specify the machine ID that was passed to fdbserver processes running on the same machine as this client, for better location-aware load balancing.

    Declaration

    Swift

    case machineId = 21
  • Specify the datacenter ID that was passed to fdbserver processes running in the same datacenter as this client, for better location-aware load balancing.

    Declaration

    Swift

    case datacenterId = 22