|
|
|
|
|
by Nick-Craver
3693 days ago
|
|
> With the foreign key table, performance would suffer, but probably not enough to matter for most use cases. Citation needed :) That's going to really depend. I'm not for or against NoSQL (or any platform). Use what's best for you and your app! In our case, NoSQL makes for a bad database approach. We do many cross-sectional queries that cover many tables (or documents in that world). For example, a Post document doesn't make a ton of sense, we're looking at questions, answers, comments, users, and other bits across many questions all the time. The same is true of users, showing their activity for things would be very, very complicated. In our case, we're simply very relational, so an RDBMS fits the bill best. |
|
- data (string type, int id, json fields)
- fk (string type, int subj_id, int obj_id)
What would the performance characteristics of that be versus if "foreign keys" are stored in the same table as the data, if fk has the optimal indexes?