I’m unable to find any good example showing indexing properly using Swift. I found one example of github of Travel-sample. My confusions are:
- Can we do indexing on particlular type of document instead of the entire database?
- lets suppose, two document types having same property such as “city”. So, Will it take an indexing for both or single? If it takes for both of them then, How to restrict indexing for only one document type?
As joins are taking much more time for execution of the query, I want to apply indexing to it. Can you please solve this confusions & provide me better demos for it?