[SERVER-3286] Advantages of MongoDate Created: 17/Jun/11 Updated: 29/Aug/11 Resolved: 17/Jun/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Wes Widner | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
What are the advantages of using a Date field vs an integer? |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 17/Jun/11 ] |
|
It is a real type which all languages drivers know about, and can represent natively in the language. If you are able to store less granularity than ms (milliseconds) then you could use a smaller integer (32bits) rather than the 64bits used for a Date. |