I'm not pretty sure could I do this. My application(buy and sell) have around five to ten categories eg: vehicles, real estate, and cloths
I thought of creating separate MongoDB collections for each category because each of the categories contains with different fields eg: vehicle[km, body type, brand], cloths[size, color, gender]
, This would be very easy to manage and scale.
Now can I able to send one query to those multiple collections at once
eg: title
on all collectionsserver: nodejs
MongoDB 4.2 introduces wildcard indexes specifically for this use case.
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.