Deletion with daemon is slow

It now takes several seconds to delete a single history.

In the past the daemon was lightweight and provided in-time syncing, but now it does too many things including rebuilding a search index over and over again of which I don’t know what use is.

Sorry, the log file I am trying to upload is not authorized.

I’ve deleted the reload_search_index call and it becomes fast again.

There are two ways to avoid the problem:

  1. Finish the response without waiting for the rebuild to complete. The disk reads and computation still happens.
  2. Don’t build the index immediately if search_mode is set to fulltext in the settings. Wait until it is actually used.