Configure computeTotalCount query parameter
About this task
The procedure guides you on how to modify the default value of the computeTotalCount query parameter of the GET v1/lists/{name} endpoint in a configuration file in keepconfig.d.
The computeTotalCount query parameter, which controls whether to compute the x-total-count header and return it with the result, is set to true by default. Setting it to false significantly improves processing time by avoiding the computation of the x-total-count header and its subsequent return with the result.
Procedure
- Create a JSON file using a text editor.
-
Copy the JSON object to the JSON file.
{ "views": { "computeTotalCount": false } } -
Save the JSON file in the
keepconfig.ddirectory.Tip
Use a filename for the JSON file that reveals its purpose. To learn more on how JSON files in
keepconfig.dare processed, see Configuration management and overlay hierarchy. -
Restart Domino REST API on all servers.