hard20 pts · first answer countsdatabasesmongodbschema-design
Keeping only the last 50 notifications
Each user document keeps recent notifications in an array, and it must never hold more than the latest 50. Which single update does that?
Discussion 0
Join free to post in the discussion.
Related questions
- Embed or reference in MongoDBBackend Developer
- Building SQL from user inputBackend Developer
- What atomicity guaranteesBackend Developer
- WHERE column = NULL finds nothingBackend Developer
- COUNT(*) versus COUNT(column)Backend Developer
- Column type for pricesBackend Developer
- Storing order times for two countriesBackend Developer
- Students and courses table designBackend Developer