Skip to content

OfflineFirstGetPolicy alwaysHydrate is unexpectedly slow #568

@TillJohanndeiter

Description

@TillJohanndeiter

I had some performance problems and tried out alwaysHydrate, awaitRemote and awaitRemoteWhenNoneExist. As expected awaitRemoteWhenNoneExist was the fastest policy. But alwaysHydrate seems to be slow like awaitRemote.

According to the doc

  /// This hydration is unawaited and is not guaranteed to complete before results are returned.
  /// This can be expensive to perform for some queries; see [awaitRemoteWhenNoneExist]
  /// for a more performant option or [awaitRemote] to await the hydration before returning results.

If the hydration is not awaited then i don't understand why i don't get any speedup. I expected that the local results are returned fast and that i get the updated data with a small delays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions