-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort threads by last message date in document ThreadManager queries
Due to MongoDB limitations and the current schema, we cannot sort by the timestamps present in the metadata fields and match behavior of the ORM's ThreadManager. This would require use of Mongo's positional operator ($) in sorts, but it may be possible with the upcoming aggregation framework in MongoDB 2.2. TODO's have been left to revisit this when possible. To compromise, we can sort by the creation timestamp of the last message in the thread, which is easy to denormalize and index.
- Loading branch information
Showing
3 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters