Where() on compount indexes does not work
See original GitHub issueI 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:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Hmm, thanks Fred. Interesting point, however I have to agree - your talking don’t not make sense and creating rubbish issues annoying.