-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Hints
Caleb Ott edited this page May 3, 2016
·
3 revisions
the syntax for hints is adding it on comment before the fields after the select keyword.
select /*! YOUR_HINT*/ yourField from yourIndex
- IGNORE_UNAVAILABLE - read about it here
SELECT /*! IGNORE_UNAVAILABLE */ * FROM index1,index2
- DOCS_WITH_AGGREGATION(arg0, arg1)
Use it if you want docs to return on aggregation query.- 0 Arguments:
from
set to0
andsize
set to0
- 1 Arguments:
from
set to0
andsize
set fromarg0
- 2 Arguments:
from
set fromarg0
andsize
set fromarg1
- 0 Arguments:
Examples:
-
{from: 0, size: 0}
SELECT /*! DOCS_WITH_AGGREGATION() */ count(*) from account
-
{from: 0, size: 10}
SELECT /*! DOCS_WITH_AGGREGATION(10) */ count(*) from account
-
{from: 10, size: 20}
SELECT /*! DOCS_WITH_AGGREGATION(10, 20) */ count(*) from account