Foxx transactions

53 views
Skip to first unread message

Twin Tails

unread,
Oct 14, 2015, 2:06:21 PM10/14/15
to ArangoDB
Hi, came across this StackOverflow answer (http://stackoverflow.com/a/23857709/2509364) which mentions: 

"Foxx also lets you perform transactions with automatic rollback on failure"

and wanted to know if this means `db._executeTransaction` is unnecessary in a Foxx route?


Michael Hackstein

unread,
Oct 15, 2015, 3:41:36 AM10/15/15
to aran...@googlegroups.com
Hi,

no if you want to have transaction safety in Foxx you actually have to use: `db._executeTransaction`.
Otherwise it will have an independent transaction for each document operation (like db.colleciton.save) and one for each AQL query.

best
Michael
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages