simple-todo-app-mongodb-express-node icon indicating copy to clipboard operation
simple-todo-app-mongodb-express-node copied to clipboard

First Cloud Computing Contribution

Open shweta10101 opened this issue 1 year ago • 0 comments

Issue: No Indexing on MongoDB Collections Problem: MongoDB collections might become slower as data grows. Indexing can greatly improve query performance, especially in cloud environments with larger datasets. Solution: Add indexing to the Todo and User models to ensure efficient querying

Issue: Lack of Connection Pooling and Retry Mechanism Problem: In cloud environments, databases may experience temporary downtime. The current connection code does not handle retries or use connection pooling. Solution: Implement a retry mechanism and enable connection pooling by configuring the MongoClient in database.js.

shweta10101 avatar Oct 11 '24 06:10 shweta10101