1. To achieve the benefits of preloading without delaying server startup, set prime-method to preload-internal-nodes-only, which caches all of the keys within the database, but not the values.

    The database values themselves can be cached in the background once the server has been started with the cursor-across-indexes option.

    $ bin/dsconfig set-backend-prop \
      --backend-name userRoot \
      --add prime-method:preload-internal-nodes-only \
      --add prime-method:cursor-across-indexes \
      --set background-prime:true
                        
  2. To apply the changes, restart the Directory Server.
    1. Run bin/stop-server.
    2. Run bin/start-server.