start_index_rebuild
async
¶
start_index_rebuild(
*,
config_overrides: Optional[AsyncneptunedataClientConfig] = None,
scope: Optional[Scope] = None,
concurrency: Optional[RebuildConcurrency] = None,
write_buffer_size: Optional[WriteBufferSize] = None,
client_token: Optional[str] = None,
) -> StartIndexRebuildOutput
Initiates an index rebuild operation to optimize storage and improve query performance. The rebuild operation reorganizes index to reclaim space and improve efficiency.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:StartIndexRebuild IAM action in that cluster.
Parameters:
-
scope(Optional[Scope], default:None) –Specifies the scope of the rebuild operation. Possible values are:
-
ALL- Rebuild all (quads and dictionaries). This is the default if not specified. -
QUADS- Rebuild only the quad indexes. -
DICTIONARIES- Rebuild only the dictionaries.
-
-
concurrency(Optional[RebuildConcurrency], default:None) –The number of concurrent indexes to rebuild in parallel. If not specified, defaults to
1.Valid values are between
1and the number of vCPUs available on the writer instance. If the value exceeds the available vCPUs, it is capped at the maximum instead of returning anInvalidParameterException. The effective (capped) value is returned in the response.Higher concurrency can shorten the overall rebuild, but also increases CPU and I/O load during the operation.
-
write_buffer_size(Optional[WriteBufferSize], default:None) –Controls the buffer size used for tracking concurrent write operations during the index rebuild. If your database has high write traffic during the rebuild, a larger buffer prevents the operation from failing due to buffer overflow. Possible values are:
-
LOW- Suitable for databases with light to moderate write activity. This is the default. -
MEDIUM- Recommended for databases with sustained write traffic or bulk loading. -
HIGH- Use when rebuilding indexes during heavy write workloads or continuous bulk data ingestion.
If your rebuild fails and you are actively writing data to the database, retry with a higher
writeBufferSizevalue. For bulk load operations, consider usingHIGH. -
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, the SDK automatically generates one.
Raises:
-
AccessDeniedException–Raised in case of an authentication or authorization failure.
-
ClientTimeoutException–Raised when a request timed out in the client.
-
ConcurrentModificationException–Raised when a request attempts to modify data that is concurrently being modified by another process.
-
ConstraintViolationException–Raised when a value in a request field did not satisfy required constraints.
-
IllegalArgumentException–Raised when an argument in a request is not supported.
-
InternalFailureException–Raised when the processing of the request failed unexpectedly.
-
InvalidArgumentException–Raised when an argument in a request has an invalid value.
-
InvalidParameterException–Raised when a parameter value is not valid.
-
MemoryLimitExceededException–Raised when a request fails because of insufficient memory resources. The request can be retried.
-
MethodNotAllowedException–Raised when the HTTP method used by a request is not supported by the endpoint being used.
-
PreconditionsFailedException–Raised when a precondition for processing a request is not satisfied.
-
ReadOnlyViolationException–Raised when a request attempts to write to a read-only resource.
-
ResourceNotFoundException–Raised when the specified resource could not be found. The resource might have been deleted or the identifier might be incorrect.
-
ServerShutdownException–Raised when the server shuts down while processing a request.
-
TooManyRequestsException–Raised when the number of requests being processed exceeds the limit.
-
UnsupportedOperationException–Raised when a request attempts to initiate an operation that is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptunedata/_services/async_neptunedata.py
2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 | |