Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

openCypher query hints

Focus mode
openCypher query hints - Amazon Neptune
Important

openCypher query hint is only available from engine release 1.3.2.0 and later.

In Amazon Neptune, you can use the USING clause to specify query hints for openCypher queries. These hints allow you to control optimization and evaluation strategies.

The syntax for quert hints is:

USING {scope}:{hint} {value}
  1. {scope} defines the scope in which the hint applies to: Query or Clause.

    A scope value of Query means that the query hint applies to the whole query (query-level).

    A scope value of Clause means that the query hint applies to the clause the hint precedes (clause-level).

  2. {hint} is the name of the query hint being applied.

  3. {value} is the argument for the {hint}.

The values can be case-insensitive.

For example, to enable the query plan cache for a query:

Using QUERY:PLANCACHE "enabled" MATCH (a:Person {firstName: "Erin", lastName: $lastName}) RETURN a
Note

Currently, only the Query scope query hint PLANCACHE is supported. Supported query hints are listed below.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.