I might be missing some parts but it fail to work for me.
First commit : When looking at the code it seems that when calling where method of a query which already have a different index build a new method witout using the given index name.
Second commit : query.Iterator always build ValueIterator but the solver seems to be waiting for index only iterator.
Third commit : (i'm really not sure of this one) the solver used is the zigzag merge, even if i have no composite index. It fail with :
"Uncaught AssertionError: Assertion failed: Expected array but got number: 2."
This commit make isRefJoin return true only if there is one or more composite index.
P.S. : It will be easier to do everything in only one pull request, so you can reject all at once if i'm just doing it wrong.
Hi,
I'm trying to make work chained where on ydn.db.Query (as described in this issue ) :
db.from(store).where(index1, op1, value1).where(index2, op2, value2).list();
I might be missing some parts but it fail to work for me.
First commit : When looking at the code it seems that when calling where method of a query which already have a different index build a new method witout using the given index name.
Second commit : query.Iterator always build ValueIterator but the solver seems to be waiting for index only iterator.
Third commit : (i'm really not sure of this one) the solver used is the zigzag merge, even if i have no composite index. It fail with :
"Uncaught AssertionError: Assertion failed: Expected array but got number: 2."
This commit make isRefJoin return true only if there is one or more composite index.
P.S. : It will be easier to do everything in only one pull request, so you can reject all at once if i'm just doing it wrong.