When creating a view, if the document type check only accesses the metadata document key and not any fields of the document itself (ex., if substring (metatdata_key, 1, 5) == 'MYDOC" instead of if doc_type == ‘MYDOC’), would it make view creation faster because it won’t have to read the actual documents (perhaps, with the exception of MYDOC type).
I thought that the map function is applied to all documents in the bucket and therefore this suggestion has no merit, but I don’t know for sure. Is there a good way to test it?
Thank you,
– Alex