Hi everyone,
I'm using cross-collection transactions a lot and, as ArangoDB's locking
model is at the collection level and not the document, I'm thinking about
how scalable this is when you have a lot of writes coming in.
So I was wondering:
1. Is it better to group all operations in a single transaction or when
possible, break them down into several smaller transactions spanning less
collections (all called sequentially within the same Foxx route)?
2. When chaining transactions, sometimes I have to pass data from one to
the other; in that case, is it better to
a. use variables with a scope that spans all transactions:
var myVar;
db._executeTransaction({
// set myVar
})
db._executeTransaction({
// use myVar
})
b. pass those variables in and out of the transactions:
var myVar = db._executeTransaction({
})
db._executeTransaction({
params: myVar
})
Thanks!
Thomas
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.