MarkLogic version - 9.0-6.2
In our data-hub-FINAL database, every entity has a property called "TransactionRequestDtTm", which means, literally every document in the database has this property.
For one specific collection, I have a requirement to fetch documents that have "TransactionRequestDtTm" greater than the input timestamp. I am thinking of using a range index on TransactionRequestDtTm property, but based on my understanding, MarkLogic would pull all documents that have TransactionRequestDtTm property into memory upon initialization. In my case, it means the entire database would be pulled into memory.
Please correct my understanding if the actual behavior is different. Is there a way to indicate that the range index is required only on a specific collection (may be use a different property name)? Please suggest!