.NET Client Documentation
5.6.0
Search Results for

    Show / Hide Table of Contents

    OptimizeAsync Method

    OptimizeAsync()

    Optimizes the only index by fully removing nodes marked for deletion, trimming neighbor sets to the advertised degree, and updating the entry node as necessary.

    Backups of this operation are always executed as async backups.

    Declaration
    Task OptimizeAsync()
    Returns
    Task

    A task that represents the asynchronous operation. The task result is void if the process finishes successfully; or completed exceptionally with an IndexMutationDisallowedException if the index is currently undergoing an optimization operation; or completed exceptionally with an ArgumentException if the collection has more than one index.

    OptimizeAsync(string)

    Optimizes the specified index by fully removing nodes marked for deletion, trimming neighbor sets to the advertised degree, and updating the entry node as necessary.

    Backups of this operation are always executed as async backups.

    Declaration
    Task OptimizeAsync(string indexName)
    Parameters
    string indexName

    The name of the index to optimize.

    Returns
    Task

    A task that represents the asynchronous operation. The task result is void if the process finishes successfully; or completed exceptionally with an IndexMutationDisallowedException if the index is currently undergoing an optimization operation; or completed exceptionally with an ArgumentException if the collection has more than one index.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.