A team is developing a logistics application using MongoDB to track shipments in real-time. Each shipment record updates frequently with GPS coordinates, and the system requires immediate access to the latest location data for efficient routing and delivery updates. The application also needs to maintain a compact record of each shipment's path without unnecessary data duplication. Which MongoDB feature or design pattern should be used to model the shipment tracking system?
A data modeler is tasked with designing a database for a movie streaming service. The database needs to efficiently store and retrieve information about movies, including the movie's title, director, genre(s), release year, and average viewer rating. How should the data modeler structure the Movie entity?
A developer is building a project management tool where each Project can have multiple Task entities. The tasks are frequently updated and accessed together with their parent project. What is the most efficient way to model this data relationship in MongoDB to optimize for task read and write operations?
A startup is designing a new MongoDB database to store user information and their respective device data. Each user can have multiple devices, and each device can generate daily usage statistics. The startup's application needs to frequently access a user's profile and their device's latest usage statistics. Considering scalability, efficiency, and security, which data model would best suit the startup's requirements?