Low pefomace data api in mongodb

Hello, I have been using the MongoDB Data API, but the response time is very slow, affecting the user experience. How can I improve the performance of the MongoDB Data API?