question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where() on compount indexes does not work

See original GitHub issue

I have tried several times to query on a compound index without success.

{
  keyPath: ['foo', 'bar']
}

.where(store, ['foo', 'bar'], ...) // Using compound index
.where(store, 'foo, bar', ...)  // Expected name by YDN?
.where(store, 'foo,bar', ...)  // Expected name by YDN?
.where(store, 'foo_bar', ...) // Custom name

With, or without name, lead to no success. Sometimes it appeared that it was working but in fact the where was not filtering anything. I might have done something wrong, but I couldn’t debug because the source code was minified and I do not have time to start building the app.

Cheers, Fred

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yathitcommented, May 14, 2015

Your talking don’t not make sense and creating rubbish issues annoying.

Proof your claims in jsbin and read before you do.

If you don’t have time to read and understand, this library is not for you.

0reactions
mdjnelsoncommented, Apr 18, 2016

Hmm, thanks Fred. Interesting point, however I have to agree - your talking don’t not make sense and creating rubbish issues annoying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

compound index not working? - Stack Overflow
Firstly, compound indexes are only created after ensureIndex() is called. The problem for me is that I was using an import script that...
Read more >
Compound Indexes — MongoDB Manual
Compound indexes can support queries that match on multiple fields. ... Compound indexes may not contain a hashed index field. You will receive...
Read more >
MongoDB - Compound Indexes - GeeksforGeeks
We can use the sort() function of MongoDB on the created index as indexes contain ordered records, MongoDB can obtain the results of...
Read more >
Manage indexing in Azure Cosmos DB for MongoDB
You can't create compound indexes using the indexing policy editor in the Data Explorer. Index types. Single field. You can create indexes on ......
Read more >
why is mysql not using the composite index on my query?
why is mysql not using the composite index on my query? Index selectivity is too low - so table scan is preferred. Try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found