From: Keith Branton <ke...@branton.co.uk>
Date: Tue, 18 Jan 2011 09:51:35 -0700
Local: Tues, Jan 18 2011 11:51 am
Subject: Re: [mongodb-user] Re: Running stored functions from Java API
> what is the difference with .eval and .doEval? > The best documentation is well written code - always accurate and very seen nere: public CommandResult doEval( String code , Object ... args ) return command( BasicDBObjectBuilder.start() public Object eval( String code , Object ... args ) CommandResult res = doEval( code , args ); if ( res.ok() ){ throw new MongoException( "eval failed: " + res ); So eval simply wraps doEval, does a check for successful execution and I used eval because I wanted the result of the function call. You could What I haven't found yet is much documentation on all the commands you can > I've been told that I have not experienced this, and I fully plan to go into production using > "there is no way to go to production with mongo because it is loosing > data". Mongo in the next month or so. Do you have any further details as to where it's loosing data? I know about the following... - if you don't use WriteConcern.SAFE then it is possible for writes to Are you aware of any other potential problems? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||