Skip to content

Commit 9a3e7be

Browse files
committed
📝 Add GraphQL app definition indexes configuration
1 parent 397f8f2 commit 9a3e7be

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎docs/default-configuration.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,16 @@ graphql:
405405
# default-limit is used for queries that don't not specify a limit
406406
default-limit: 100
407407
# max-limit is the maximum value for a Query limit
408-
max-limit: 1000
408+
max-limit: 1_000
409409
# The time limit in milliseconds for processing queries. Set to 0 for no time limit.
410-
query-time-limit: 0
410+
query-time-limit: 0 # in msecs
411411
verbose: false
412+
413+
# Automatically creates indexes on {"descriptor.uri":1} and {"descriptor.name":1}
414+
# for GraphQL applications to improve query performance when fetching app definitions
415+
# at scale. Enable if you have many GraphQL applications.
416+
createIndexesOnGqlApps:
417+
enabled: false
412418
----
413419

414420
NOTE: `app-cache-enabled` and `app-cache-ttr` are available from v8.0.9 and v8.0.11, respectively. Earlier versions use an expiring cache policy with TTL configurable via the now-deprecated `graphql/app-def-cache-ttl` option. See link:https://github.com/SoftInstigate/restheart/issues/523[issue #523].

0 commit comments

Comments
 (0)