Hi Luigi, Much appreciated for the answer, that's clear!
Erik On Monday, December 28, 2015 at 10:36:24 AM UTC+1, Luigi Dell'Aquila wrote: > > Hi Erik, > > the only difference is that query() checks that you statements are > idempotent (do not modify database status), while command() is also allowed > to execute insert/update/delete. > There is no difference in terms of performance and no particular advantage > in one or the other, apart from the semantics. > > Thanks > > Luigi > > > 2015-12-26 20:02 GMT+01:00 Erik Pragt <[email protected] <javascript:>>: > >> Hi all, >> >> Question: what's the difference between: >> >> >> db.query(new OSQLSynchQuery<ODocument>("select * from books")); >> >> >> and >> >> >> db.command(new OSQLSynchQuery<Book>("select * from books")).execute(params); >> >> >> What's the recommended way, and what's the actual difference between these >> two?? >> >> >> Thanks, Erik >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
