1.3.27s1 patch notes
- provide API for scripts to not time out important operations (operations that require multiple db calls)
- _START is a global datetime object created at the start of execution
- _TIMEOUT is this run's timeout millisecond count
- l.can_continue_execution(required_milliseconds) will return true if required_milliseconds are left before timeout
- this is an estimation on all ends, make sure your estimates are appropriate ;)
- l.can_continue_execution_error(name, req_millis) returns an {ok:false,msg:errormsg} "name could not continue executing because XXms are not available for execution."
- this api is used internally for many trust scripts that require db op consistency.
- max user name length is now 50 characters
- security updates
- stability & consistency updates
- !!IMPORTANT REFACTOR!! db.s has been removed
- Feature parity can be achieved with db.u1({_id:obj._id}, obj).
- It is strongly recommended to use {$set: {some_data: obj.some_data} } as the second param and update only the data that is changing.
- upgrades have serial numbers
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This post has been deleted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Question: Can we view the serial numbers? I don't see them in sys.upgrades{info:n}
Correction: db.u({_id:obj._id}, obj) does not appear to work ('multi update only works with $ operators (9)'). But this appears to: db.u({_id:obj._id}, {$set:obj}).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OH, wait, i see the serial number when called in a script, but not from the CLI. That's good enough for my purposes.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AND I see you said db.u1, which I thought was a typo but is a thing that works as you said. Woo. Ignore me entirely ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oy dev, doing some great work there! Went from not working to working again in like 2 hours. That's even rare in big companies! ;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -