updateDatabaseConfiguration static method

void updateDatabaseConfiguration({
  1. Duration? keepQueriesSyncedDuration,
})

Updates global database configurations and optimization settings.

The keepQueriesSyncedDuration parameter can be used to specify how long queries should be kept in sync. This can be useful to reduce the number of queries made to the server. The default value is 2 seconds.

Implementation

static void updateDatabaseConfiguration(
    {Duration? keepQueriesSyncedDuration}) {
  Repo.updateDatabaseConfiguration(
    keepQueriesSyncedDuration: keepQueriesSyncedDuration,
  );
  try {
    var i = FirebaseImplementation.installation;
    if (i is IsolateFirebaseImplementation) {
      i.updateDatabaseConfiguration(
          keepQueriesSyncedDuration: keepQueriesSyncedDuration);
    }
  } on FirebaseCoreException {
    // ignore
  }
}