[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:
Duplicate
duplicates SERVER-3174 Allows $inc for Date Closed
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 SERVER-3174, so I'm going to mark this ticket as a duplicate. Please note that this feature is not currently scheduled for the current development cycle, so you'll need to do these operations at the application level for the time being.

Regards,
Ramón.

Comment by suresh reddy [ 02/Mar/16 ]

could you update on this please, I am eagerly waiting for this solution.

Generated at Thu Feb 08 04:01:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.