1. To load the database contents from disk into memory when the server starts up, set the prime method to preload.

    This eliminates the need for the server to gradually prime the database cache using client traffic and ensures that the server has optimal performance when it starts to receive client connections.

    $ bin/dsconfig set-backend-prop \
      --backend-name userRoot \
      --set prime-method:preload
  2. To apply the changes, restart the Directory Server.
    1. Run bin/stop-server.
    2. Run bin/start-server.