This app was created with Meteor v. 1.9 and I am concerned about compatibility with other imports I have, so I haven’t updated and would prefer not to.
In 1.9, collection.createIndex() doesn’t exist.
Does this mean I have to go with the second option you suggested (lowercase key)?
I do notice a way to create an index on the cloud site where my DB is stored. Is an index aside from the default one even needed though?
Doing this didn’t work, so perhaps I do need an index:
Ok. I apologize but I’m still a little confused on how indexing and collation works.
I would like to fetch and display all the songs that match a userID (string).
I want to sort the songs by song title.
Let’s say I make an index with the field being songTitle, and collation options locale en, strength 2. (I was able to do this on the cloud where I store it, as I use Atlas).
Sure, the index will work if I specify the selector to be one of the songTitles, but I just want to find all the songTitles that match the selector userID:[current username], and sort by songTitles.
So how do I make it correspond to this current query that I use: