[SERVER-22903] $inc operator ISO date in mongodb Created: 01/Mar/16 Updated: 02/Mar/16 Resolved: 02/Mar/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | suresh reddy | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
HI $inc operator not working for ISO dates. could you help me, how to fix it. I am done temporary solution like below, looping all documents and update each document ISO date. this query is using more CPU and some times database gone away. |
| Comments |
| Comment by Ramon Fernandez Marina [ 02/Mar/16 ] |
|
sureshreddy, $inc only supports number fields. The functionality to allow $inc to work on ISO dates was requested before in Regards, |
| Comment by suresh reddy [ 02/Mar/16 ] |
|
could you update on this please, I am eagerly waiting for this solution. |