When designing data structures for an application, what are some best practices to make sure it can be sharded?
In particular, which of the following is better:
- Creating relationships in databases
- Establishing relationships in SQL queries as necessary?