简体   繁体   中英

How to handle query in local MongoDB database, while I am using MongoDB Atlas Search?

I am looking at the MongoDB Atlas Search . It seems only work in the MongoDB Atlas Cloud .

For dev purposes, while I run the app in the local environment and use the local MongoDB server, how these Atlas Search query will work?

I find 2 inefficient solutions.

  1. I put a flag to determine if the app is in the dev environment or production environment. But this is not an ideal solution.
  2. Each developer should use a MongoDB Atlas Free Tier for dev purposes.

Is there any better approach for MongoDB Atlas Search in the dev environment?

The first one is not a real solution. You need to use Atlas for development and testing.

I am unaware of any other way to obtain the equivalent functionality. The Atlas Search is proprietary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM