I deployed in a new virtual machine. There is no data in elasticsearch and mysql.I run this command mainly to verify whether the search is still using mysql. I guess if the search does not use mysql, deleting the data in MySQL should not affect the search results.Now we are testing v5.20.0, I have imported 5 million data, and the query has not encountered any problems.
I read part of the source code, I think the problem may be in mattermost-server/server.go at master · mattermost/mattermost-server · GitHub ,I don’t understand why s. sqlstore is used here.