I’m currently working on a project and exploring how to optimize database performance for a new app. I want to know what are some best practices for integrating MongoDB in app development — especially when handling real-time data and scaling across multiple users.