mongodb-d4
mongodb-d4 copied to clipboard
Fine-grained workloadcombiner
Assume, we have operations in a session: a, b, c, d and a design that defines collection D should be embedded into B. (a will access A, b will access B, etc.)
Right now, we only do coarse-grained combination, which means we don't care too much about the relationships among the queries, we just embed collection D to A and append all queries accessing D to the operation on collection A.
But this is not enough and it may be wrong. For instance, if there is an if statement based on the output of b that determines if the operations after b will be executed. Under this condition, we cannot simply embed collection to D and append all the operations on collection D to a.
The fine-grained version will be done later.