Hi guys, the question is simple: can I use reference (aka foreign key for SQL-like db) in my database with sharding?
I found this article What is MongoDB Sharding and the Best Practices? that says:
Since there’s no support in databases to point to entities outside the current database (well, even a different database on the same machine is not supported, so forget about a database on a different machine), the concept of foreign keys goes for a toss as well. Suddenly, the database becomes “dumb,” and data integrity is your problem.
But I haven’t found other sources regarding this topic, not even on the official documentation.
Thank u