Conjunction query

Open
#14 · Created  · Last updated

Description

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.

  1. 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.

  2. Second commit : query.Iterator always build ValueIterator but the solver seems to be waiting for index only iterator.

  3. 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.

0 attachments

0 comments

Loading commits...