Open hems opened 9 years ago
cloning the repository and running the tests works, but for some reason it seems that with the data i inserted on my test the operator $in doesn't work although querying for Id works.
Did you make sure that the indexing engine installed before inserting the data? Your code example didn't cover the inserting behaviour.
by the index engine, you mean having
db.query.use(jsonqueryEngine());
db.ensureIndex('Id');
before inserting?
Yes. When are you inserting your data? The indexers need to be installed before data is inserted.
See the test cases for an example: https://github.com/eugeneware/jsonquery-engine/blob/master/test/level-plan.js#L199-L207
everything works now.
still i have an issue that when i hit a db with "jsonquery engine" it seems to load the whole thing ( couple hundreds mb of data ) into memory ( not only indexes ) and it's freezing the UI of my app..
then if i execute:
i get one result on "data"
but if i execute:
only the "end" event is being triggered.
any ideas?