Click or drag to resize

QueryOptionsAdHoc Method

If set to false, the client will try to perform optimizations transparently based on the server capabilities, like preparing the statement and then executing a query plan instead of the raw query.

Namespace:  Couchbase.Query
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public QueryOptions AdHoc(
	bool adHoc
)

Parameters

adHoc
Type: SystemBoolean
if set to false the query will be optimized if possible.

Return Value

Type: QueryOptions

[Missing <returns> documentation for "M:Couchbase.Query.QueryOptions.AdHoc(System.Boolean)"]

Remarks
The default is true; the query will executed in an ad-hoc manner, without special optimizations.
See Also