-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLIENT-2826] Support QueryDuration enum in QueryPolicy
- Loading branch information
Showing
7 changed files
with
112 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# encoding: utf-8 | ||
# Copyright 2014-2024 Aerospike, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http:#www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
module Aerospike | ||
|
||
# Defines the expected query duration. The server treats the query in different ways depending on the expected duration. | ||
# This enum is ignored for aggregation queries, background queries and server versions < 6.0. | ||
module QueryDuration | ||
|
||
# The query is expected to return more than 100 records per node. The server optimizes for a large record set in | ||
# the following ways: | ||
# | ||
# 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. | ||
LONG = 0 | ||
|
||
# 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. | ||
# 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. | ||
SHORT = 1 | ||
|
||
# Treat query as a LONG query, but relax read consistency for AP namespaces. | ||
# This value is treated exactly like LONG for server versions < 7.1. | ||
LONG_RELAX_AP = 2 | ||
|
||
end # module | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters