Documentation

QueryDuration
in package

QueryDuration represents the expected duration for a query operation in the Aerospike database.

Table of Contents

Methods

long()  : QueryDuration
LONG specifies that the query is expected to return more than 100 records per node. The server optimizes for a large record set in the following ways:
longRelaxAP()  : QueryDuration
LongRelaxAP will treat query as a LONG query, but relax read consistency for AP namespaces.
short()  : QueryDuration
Short specifies that the query is expected to return less than 100 records per node. The server optimizes for a small record set in the following ways: Always run the query in one thread and ignore the server's query threading configuration.

Methods

long()

LONG specifies that the query is expected to return more than 100 records per node. The server optimizes for a large record set in the following ways:

public static long() : QueryDuration

Allow query to be run in multiple threads using the server's query threading configuration. Do not relax read consistency for AP namespaces. Add the query to the server's query monitor. Do not add the overall latency to the server's latency histogram. Do not allow server timeouts.

Return values
QueryDuration

short()

Short specifies that the query is expected to return less than 100 records per node. The server optimizes for a small record set in the following ways: Always run the query in one thread and ignore the server's query threading configuration.

public static short() : QueryDuration

Allow query to be inlined directly on the server's service thread. Relax read consistency for AP namespaces. Do not add the query to the server's query monitor. Add the overall latency to the server's latency histogram. Allow server timeouts. The default server timeout for a short query is 1 second.

Return values
QueryDuration

        
On this page

Search results