![]() Here, The $options with the “i” parameter specify that we want to carry out the search no matter if we find the letters ‘Co’ in lower or upper case. The regular expression capabilities are used for pattern matching strings in queries and for that, we use the $regex operator. MongoDB gives the functionality to search a pattern in a string through a query by writing a regular expression. The Explain Plan tab is not available for aggregation commands. In MongoDB, we can use the $regex operator to find a query that contains a string. The Explain Plan tab is not available if you are connected to Data Lake. I have explained one query on MongoDB Compass and it shows 'Actual Query Execution Time (ms): 4' However when i run same query on nodejs with mongoose, it takes more than 200 ms.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |